Reply to Re: Firefox ignores the style width attribute in the SPAN tag?

Your name:

Reply:


Posted by David Dorward on 12/10/05 23:57

Frank Rizzo wrote:

> <span style="width:100px;background-color:Red;">text</span>

> Firefox ignores the 'width' attribute.

It is a property, not an attribute.
http://www.w3.org/TR/CSS2/visudet.html#the-width-property
Applies to:
all elements but non-replaced
inline elements, table rows,
and row groups
And, since you haven't altered its display, the span is a non-replaced
inline element, so the width property doesn't apply. Looks like you have
MSIE in Quirks mode.

> I can't use the DIV tag because it forces a line break. I need all this
> stuff to be on the same line.

Use floats.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

[Back to original 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

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