|
Posted by David Dorward on 04/25/06 14:46
tommccourt@gmail.com wrote:
> Weird problem I can't figure out. I have inline lists that work well in
> IE - but in FF there are small spaces between the elements, and the
> width is not applied (the li).
> <?xml version="1.0" encoding="utf-8" ?>
Your use of an XML prolog (which might[1] be forbidden in documents
served as text/html, which you need to do to get IE to cope with XHTML)
triggers Quirks mode in IE.
In Quirks mode, IE gets a number of things about CSS wrong
(intentionally). One of these is that is applies the width property to
elements which are displaying inline (which the CSS 2 spec forbids).
If you need to set a width on an element and have it horizontally next
to another element, then floats are usually the solution.
[1] The spec is very badly written so it is difficult to tell
Navigation:
[Reply to this message]
|