Reply to Re: CSS: Class error

Your name:

Reply:


Posted by Els on 02/26/06 19:42

Jonathan N. Little wrote:

> 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 {...}

..subsubsection#sverige is actually correct.
Proof:
<http://validator.w3.org/check?verbose=1&uri=http://here.locusmeus.com/temp/idclass.html>

--
Els http://locusmeus.com/

[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

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