Reply to Re: Class attribute values

Your name:

Reply:


Posted by Lachlan Hunt on 11/11/05 12:58

Toby Inkster wrote:
> 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...

Yes you can, it's just not as clear as the attribute selector. This
works for the class name "0.4"

..\30\.4 { color: green; }

(note: 30 is the hex code point for digit 0)

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox

[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

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