Let's suppose that I have a HTML page that renders something like bellow:
labelA [___INPUT-TEXT____] labelB [___INPUT-TEXT____]
However, I want to "break the line" on the second label, something like:
labelA [___INPUT-TEXT____]
labelB [___INPUT-TEXT____]
Assuming that I can not change the HTML code. How can I do it with CSS?
Here is an example:
<html><head><style>
#labelA { display:block; }
#labelB { display:block; }
</style></head>
<body>
<label for="ia" id="labelA">labelA</label><input id="ia" type="text"/>
<label for="ib" id="labelB">labelB</label><input id="ib" type="text"/>
</body></html>
Any help is appreciated.
Cheers,
EDIT:
I mean { display: block; }
instead of {inline:block}
, thanks for pointing it out.