You are here: Re: Inline list width problem in Firefox « HTML « IT news, forums, messages
Re: Inline list width problem in Firefox

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация