|
Posted by Jonathan N. Little on 06/30/06 13:38
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
Navigation:
[Reply to this message]
|