![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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 |
#3
| |||
| |||
|
|
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 |
#4
| |||
| |||
|
|
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). |
![]() |
| Thread Tools | |
| Display Modes | |
| |