|
Posted by Els on 02/26/06 03:39
Luigi Donatello Asero wrote:
> "Luigi Donatello Asero" <jaggillarfotboll@telia.com> skrev i meddelandet
> news:wx7Mf.46209$d5.202519@newsb.telia.net...
>>
>> "Els" <els.aNOSPAM@tiscali.nl> skrev i meddelandet
>> news:1xxw5g6a8q2el$.4jqm76v2qlop.dlg@40tude.net...
>>> Luigi Donatello Asero wrote:
>>>
>>> > What is wrong with this?
>>> > .subsubsection#sverige
>>>
>>> > I get a "class error"
>>>
>>> Of course you do.
>>>
>>> So, what is it, a class? (.susubsection) an id? (#sverige)?
>>> Can't make the two into a hybrid.
>>
>>
>> "subsubsection" should be the class and "sverige" the id which belongs to
>> the class "subsubsection" and which I want to define.
>
> In theory there could have been another id which is called "sverige" as
No, in theory[1] there couldn't be. In practice there could be, but it
would be wrong practice.
> well but belongs to a different class, so I guess that it is always safer to
> write both the class and the id. The id is a child of the class.
If the element with the id is a child of the element with the class,
as in <div class="subsubsection"><p id="sverige">, then write it as
..subsubsection #sverige.
_________
[1] theory based on assumption that you try to follow the W3C
recommendations
--
Els http://locusmeus.com/
[Back to original message]
|