You are here: Re: CSS: Class error « HTML « IT news, forums, messages
Re: CSS: Class error

Posted by Michael Winter on 02/26/06 05:00

On 26/02/2006 01:11, Els wrote:

> Luigi Donatello Asero wrote:
>
>> What is wrong with this?
>> .subsubsection#sverige

[snip]

> So, what is it, a class? (.susubsection) an id? (#sverige)?
> Can't make the two into a hybrid.

Certainly can[1]. A 'simple' selector is an optional element name
(including the universal element selector, '*'), followed by any number
of attributes (including none, unless the element name is omitted), with
no intervening whitespace.

.subsubsection#sverige a

would match an anchor (A element) that is a descendant of any element
that has both a class attribute containing the word 'subsubsection' and
an id attribute value that equals 'sverige'.

This particular pattern might not be that useful - the id attribute
selector would normally suffice on its own - but it's possible that
though there may be many elements within the documents of a site with a
given id attribute value, only a subset will also have the required
class name, too.


As for what a 'class error' is, I have no idea. Unless Luigi cares to
mention where (and with what) this error apparently occurred, there's
not much I can add.

Mike


[1] See the simple_selector production in Appendix D.1 Grammar of
the CSS 2 Specification.

<http://www.w3.org/TR/REC-CSS2/grammar.html#x1>

--
Michael Winter
Prefix subject with [News] before replying by e-mail.

 

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

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