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/
Navigation:
[Reply to this message]
|