|
Posted by David Dorward on 12/10/05 23:57
Frank Rizzo wrote:
> <span style="width:100px;background-color:Red;">text</span>
> Firefox ignores the 'width' attribute.
It is a property, not an attribute.
http://www.w3.org/TR/CSS2/visudet.html#the-width-property
Applies to:
all elements but non-replaced
inline elements, table rows,
and row groups
And, since you haven't altered its display, the span is a non-replaced
inline element, so the width property doesn't apply. Looks like you have
MSIE in Quirks mode.
> I can't use the DIV tag because it forces a line break. I need all this
> stuff to be on the same line.
Use floats.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
[Back to original message]
|