Join Bytes! wrote:[color=blue]
> Hello all,
> I am trying to make horizontal bars of different lengths. I tought
> either SPAN or DIV would work but it only works for IE. I have a small
> example at:
http://sedivy.com/test.htm
> Let me know if I missed something.
>[/color]
You have used the 'width' property on inline elements, but the CSS spec
says:
"This property does not apply to non-replaced inline-level elements."
<URL:http://www.w3.org/TR/CSS21/visudet.html#the-width-property>
Your spans have no content, so although the backgrounds have been set to
the colours you define, you can't see them. Put some text inside the
spans or divs and Firefox will show your background colour (but still no
honour your width suggestion).
I think IE is wrong in this case - it should not show empty inline
elements the way it does.
If what you are trying to show really should be in a table, then use
table cells and not spans or inline divs.
--
Rob