You are here: Re: Class attribute values « HTML « IT news, forums, messages
Re: Class attribute values

Posted by Toby Inkster on 11/18/53 11:31

Spartanicus wrote:

> The above assigns two classes to the element, "thumbedImage" and "0.4",
> the latter is not permitted since class names are not allowed to start
> with a digit: http://www.w3.org/TR/CSS21/syndata.html#q6

In HTML, class names *are* allowed to start with a digit. However, if you
choose to use class names that start with a digit, you can't select them
using the CSS "dot-class" selector -- that is classes that don't start
with a letter aren't particularly useful for styling, but can be used for
general purpose element subclassing.)

(Of course you can select them in CSS using *[class~="0.4"], though
browser support for this syntax is less widespread.)

--
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

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