Posted by David Graham on 12/19/05 14:55
I read a post were a guy had trouble because Firefox would not play ball
with the width property on a non-replaced inline element, so the code below
did not work as the OP thought it would .
<span style="width:100px;background-color:Red;">text</span>
<span style="width:100px;background-color:Green;">test</span>
<span style="width:100px;background-color:Blue;">test</span>
The answer given was:
"And, since you haven't altered its display, the span is a non-replaced
inline element....."
Could someone explain what sort of thing you could do to a span to alter its
display and thereby turn it into a replaced inline element (which according
to logic would respond to the width property). Just getting a bit lost with
the terminology.
thanks in advance
David
[Back to original message]
|