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

Posted by Jonathan N. Little on 02/26/06 19:29

Luigi Donatello Asero wrote:

> "David Dorward" <dorward@yahoo.com> skrev i meddelandet
> news:dtr1ro$7su$1$8300dec7@news.demon.co.uk...
>
>>Luigi Donatello Asero wrote:
>>
>>
>>>What is wrong with this?
>>>.subsubsection#sverige A { background-color: #99ffcc;
>>>background-image:none;
>>>color: #000000; display: block; text-align:center;}
>>>
>>>I get a "class error"
>>
>>From what? The W3C CSS Validator doesn't throw such an error on that code.
>
>
> The W3C CSS Validator did not seem to accept
> URLs with https and for some reason did not display any results when I tried
> to paste the content of the file,
> so I used this one instead
> http://www.htmlhelp.com/tools/csscheck/
> This displayed the error as far as I remember
> Afterwards I tried to make many changes in the stylesheet to improve it and
> it probably needs be much improved yet
>
>


Okay I think I know what is going on here, when Luigi is trying to
specify a A element that is a child of and ELEMENT that is both
CLASS="subssubsection" AND ID="saverige" fails because

..subsubsection#sverige A
^^^^^^^^^^^^^^^^^^^^^^
this is the wrong way to specify the condition as it is being
interpreted as class "subsubsection#sverige" containing an illegal
character '#' thus giving you the "class error", to what you wish Luigi
I think it should be written:

#sverige[class="subsubsection"] a {...}

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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