HighDots Forums  

CSS Question about <ul>

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss CSS Question about <ul> in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Chris
 
Posts: n/a

Default CSS Question about <ul> - 08-03-2004 , 11:45 AM






Hello,

There is something I do not understand with CSS applied to the <ul> tag.
The rule:
#somediv ul ul {something}
seems to apply similarly to all nested <ul> in a structure such as:
<ul>
<li></li>
<li>
<ul>
<li></li>
<li>
<ul>
<li></li>
<li>
</ul>
</ul>
</ul>
This rule also applies to the 3rd <ul> whereas I would have thought I
would also need this rule for the 3rd <ul>:
#somediv ul ul ul {something}

It is the same thing for this rule:
#somediv li {something}
seems to apply to all nested <li>...

Is there an explanation for this?

Thank you for your help

Cheers
Chris

Reply With Quote
  #2  
Old   
Thierry Koblentz
 
Posts: n/a

Default Re: CSS Question about <ul> - 08-03-2004 , 12:24 PM






It tells the UA to apply that rule to "nested" ULs.
The 2nd UL is nested in the "same way" the 3rd one is.

HTH,
Thierry

Chris wrote:
Quote:
Hello,

There is something I do not understand with CSS applied to the <ul
tag. The rule:
#somediv ul ul {something}
seems to apply similarly to all nested <ul> in a structure such as:
ul
li></li
li



Reply With Quote
  #3  
Old   
Joe {RoastHorse}
 
Posts: n/a

Default Re: CSS Question about <ul> - 08-03-2004 , 01:10 PM



ul ul will apply to a <ul> within a <ul> regardless of any parent
elements (eg another ul), if you want to target a specific list then you
could use a css class (my choice) or use <style>ul ul ul {}</style> to
reset further nested lists (yuk).

joe




Chris wrote:

Quote:
Hello,

There is something I do not understand with CSS applied to the <ul> tag.
The rule:
#somediv ul ul {something}
seems to apply similarly to all nested <ul> in a structure such as:
ul
li></li
li
ul
li></li
li
ul
li></li
li
/ul
/ul
/ul
This rule also applies to the 3rd <ul> whereas I would have thought I
would also need this rule for the 3rd <ul>:
#somediv ul ul ul {something}

It is the same thing for this rule:
#somediv li {something}
seems to apply to all nested <li>...

Is there an explanation for this?

Thank you for your help

Cheers
Chris

Reply With Quote
  #4  
Old   
Michael Fesser
 
Posts: n/a

Default Re: CSS Question about <ul> - 08-03-2004 , 03:04 PM



.oO(Joe {RoastHorse})

Quote:
ul ul will apply to a <ul> within a <ul> regardless of any parent
elements (eg another ul), if you want to target a specific list then you
could use a css class (my choice) or use <style>ul ul ul {}</style> to
reset further nested lists (yuk).
Another very useful way is to use child selectors (but they are not
supported by IE).

Micha


Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.