Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > <ul class="subsubsection" id="domaener">

Reply
Thread Tools

<ul class="subsubsection" id="domaener">

 
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      06-30-2006
Hello,
How do I write ul class and id in an external style sheet?
Are the forms
#domaener.subsubsection ul {
}
and
<ul class="subsubsection" id="domaener">
both accepted
or perhaps wrong?
--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
кто слящая красавица?


 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      06-30-2006
Luigi Donatello Asero wrote:
> Hello,
> How do I write ul class and id in an external style sheet?
> Are the forms
> #domaener.subsubsection ul {
> }
> and
> <ul class="subsubsection" id="domaener">
> both accepted
> or perhaps wrong?


Wrong, that points to a UL that is a *child* of element ID "domaener"
and class "subsubsection".

if you want to style the UL then

#domaener.subsubsection {...} is want you want. The UL is not needed
because only *one* element can be id "domaener", one would write

element.className {...}

to be more specific because you *can* have more than one element that is
class="subsubsection".

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
Jim Higson
Guest
Posts: n/a
 
      06-30-2006
Luigi Donatello Asero wrote:

> Hello,
> How do I write ul class and id in an external style sheet?
> Are the forms
> #domaener.subsubsection ul {
> }
> and
> <ul class="subsubsection" id="domaener">
> both accepted
> or perhaps wrong?


instead of "subsubsection" it might be neater to use XHTML2 style nesting.
For example, this selector matches a section in a section in a section:

..section .section .section


--
Jim
 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      06-30-2006
Jim Higson wrote:
> Luigi Donatello Asero wrote:
>
>> Hello,
>> How do I write ul class and id in an external style sheet?
>> Are the forms
>> #domaener.subsubsection ul {
>> }
>> and
>> <ul class="subsubsection" id="domaener">
>> both accepted
>> or perhaps wrong?

>
> instead of "subsubsection" it might be neater to use XHTML2 style nesting.
> For example, this selector matches a section in a section in a section:
>
> .section .section .section
>
>


Don't what that has to do XHTML, CSS2.1 does nesting selector just dandy.

..doThis {...}
..doThat {...}

..doThis .doThat { ... can be something different ...}


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<style type="text/css">
.doThis { color: red; }
.doThat { color: green; }
.doThis .doThat { color: blue;}
</style>

</head>
<body>
<div class="doThis">I am red</div>
<div class="doThat">I am green</div>
<div class="doThis">I am red
<div class="doThat">I am blue</div>
<div class="doThis">I am red again</div>
</div>
<div class="doThat">I am green
<div class="doThat">I am still green</div>
<div class="doThis">I am still red</div>
</div>
</body>
</html>

Don't get Luigi confused with XHTML, he is dangerous enough in HTML

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      06-30-2006

"Jim Higson" <(E-Mail Removed)> skrev i meddelandet
news:(E-Mail Removed)...
> Luigi Donatello Asero wrote:
>
> > Hello,
> > How do I write ul class and id in an external style sheet?
> > Are the forms
> > #domaener.subsubsection ul {
> > }
> > and
> > <ul class="subsubsection" id="domaener">
> > both accepted
> > or perhaps wrong?

>
> instead of "subsubsection" it might be neater to use XHTML2 style nesting.
> For example, this selector matches a section in a section in a section:
>
> .section .section .section



But I use a html doctype....


--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
кто слящая красавица?


 
Reply With Quote
 
dorayme
Guest
Posts: n/a
 
      06-30-2006
In article <2dbe3$44a56863$40cba793$(E-Mail Removed)>,
"Jonathan N. Little" <(E-Mail Removed)> wrote:

> Don't get Luigi confused with XHTML, he is dangerous enough in HTML


No truer words were ever spoken...

--
dorayme
 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      06-30-2006

"dorayme" <(E-Mail Removed)> skrev i meddelandet
news:(E-Mail Removed)...
> In article <2dbe3$44a56863$40cba793$(E-Mail Removed)>,
> "Jonathan N. Little" <(E-Mail Removed)> wrote:
>
> > Don't get Luigi confused with XHTML, he is dangerous enough in HTML

>
> No truer words were ever spoken...



Do you like footboll?


--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
кто слящая красавица?


 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      06-30-2006

"Luigi Donatello Asero" <(E-Mail Removed)> skrev i meddelandet
news:0Zhpg.6948$(E-Mail Removed)...
>
> "dorayme" <(E-Mail Removed)> skrev i meddelandet
> news:(E-Mail Removed)...
> > In article <2dbe3$44a56863$40cba793$(E-Mail Removed)>,
> > "Jonathan N. Little" <(E-Mail Removed)> wrote:
> >
> > > Don't get Luigi confused with XHTML, he is dangerous enough in HTML

> >
> > No truer words were ever spoken...

>
>
> Do you like footboll?



Sorry, I meant soccer.


--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
кто слящая красавица?


 
Reply With Quote
 
Els
Guest
Posts: n/a
 
      06-30-2006
Luigi Donatello Asero wrote:

> "Luigi Donatello Asero" <(E-Mail Removed)> skrev i meddelandet
> news:0Zhpg.6948$(E-Mail Removed)...
>>
>> "dorayme" <(E-Mail Removed)> skrev i meddelandet
>> news:(E-Mail Removed)...
>>> In article <2dbe3$44a56863$40cba793$(E-Mail Removed)>,
>>> "Jonathan N. Little" <(E-Mail Removed)> wrote:
>>>
>>> > Don't get Luigi confused with XHTML, he is dangerous enough in HTML
>>>
>>> No truer words were ever spoken...

>>
>> Do you like footboll?

>
> Sorry, I meant soccer.


You think Italy will win Tuesday?

--
Els http://locusmeus.com/

Now playing: Daniela Mercury - O Canto Da Cidade
 
Reply With Quote
 
Luigi Donatello Asero
Guest
Posts: n/a
 
      06-30-2006

"Els" <(E-Mail Removed)> skrev i meddelandet
news(E-Mail Removed)...
> Luigi Donatello Asero wrote:
>
> > "Luigi Donatello Asero" <(E-Mail Removed)> skrev i meddelandet
> > news:0Zhpg.6948$(E-Mail Removed)...
> >>
> >> "dorayme" <(E-Mail Removed)> skrev i meddelandet
> >> news:(E-Mail Removed)...
> >>> In article <2dbe3$44a56863$40cba793$(E-Mail Removed)>,
> >>> "Jonathan N. Little" <(E-Mail Removed)> wrote:
> >>>
> >>> > Don't get Luigi confused with XHTML, he is dangerous enough in HTML
> >>>
> >>> No truer words were ever spoken...
> >>
> >> Do you like footboll?

> >
> > Sorry, I meant soccer.

>
> You think Italy will win Tuesday?



Yes. I think that Italy will win both the semifinal and the final....

--
Luigi Donatello Asero
https://www.scaiecat-spa-gigi.com/it/svezia.html
кто слящая красавица?


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments