PDA

View Full Version : Style on inline elements in firefox


Garadon
07-03-2004, 03:06 PM
How do I get Firefow to put height,width and overflow style on inline elements without setting the position style, at the moment these styles simply gets ignored.

<span style="height:200px;width:200px;border:1px solid black;">
</span>

Antoniohawk
07-03-2004, 09:01 PM
I don't think that you can apply any dimensions to an inline element. The following works though.
<span style="display: block; height: 200px; width: 200px; border: 1px solid black;"></span>