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

Posted by Toby Inkster on 04/26/06 02:21

Steve Pugh wrote:

> 1. Width doesn't apply to inline elements.

True, but it does apply to inline-block, which is supported by IE, Opera
and Safari; and to "-moz-inline-box" which is Mozilla's experimental
implementation of the same thing.

Try:

element {
display: inline;
display: -moz-inline-box;
display: inline-block;
}

That way a browser will choose the last display property it supports; and
most will end up with inline-block. Then you'll have an element that
mostly behaves like it's inline, but with working "height" and "width"
properties.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 

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

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