|
Posted by Luigi Donatello Asero on 02/26/06 03:45
"Els" <els.aNOSPAM@tiscali.nl> skrev i meddelandet
news:721fru3nawng.i7mkzpmweoxb$.dlg@40tude.net...
> 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.
Do you mean that W3 recommends to use only one "id" for each page
regardless of whether it belongs to the same class or not?
> > 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.
What does "p" stand here for?
Well,
..subsubsection#sverige was what gave an error, wasn´t it?
--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/sv/boende-i-italien.php
今天二零零六年二月二十六日
星期日
Navigation:
[Reply to this message]
|