You are here: Re: Menu list broken by form button « HTML « IT news, forums, messages
Re: Menu list broken by form button

Posted by Jukka K. Korpela on 07/12/07 11:11

Scripsit Ben C:

>> According to the sample style sheet for HTML in the CSS 2.1 draft,
>> img has display: inline-block. The sample style sheet is not
>> normative, but what else could we use here to make our guess?
>
> I don't see where that is.

D'Oh! I can't trust even my own books, it seems. Well, I wrote it in 2003,
and they changed the CSS 2.1 draft late that year. In the version
http://www.w3.org/TR/2003/WD-CSS21-20030128/sample.html
they still had img { display: inline-block; }.

All those changes to the "sample style sheet" reflect the fact that it's
just an eclectic collection of observed browser practices, nice ideas, and
weird ideas. But it may have become somewhat better through years.

Anyway, although img was not a good example, input elements and other form
fields still have display: inline-block. And my point was that
form * { display: inline; }
was unsafe since it applies to _all_ elements inside a form.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

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

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