![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there any difference in, for example- .list li {display:block;} |
|
and li.list {display:block;} |
#3
| |||
| |||
|
|
jmc schrieb: Is there any difference in, for example- .list li {display:block;} This one selects li elements that are descendants of elements that belong to the "list" class, e.g. ul class="list" li>item</li /ul but also div class="list foo" ul li>item</li /ul /div and li.list {display:block;} This one selects li elements that belong to the "list" class, e.g. ul li class="list">item</li /ul |
#4
| |||
| |||
|
|
Is there any difference in, for example- .list li {display:block;} |
|
li.list {display:block;} |
![]() |
| Thread Tools | |
| Display Modes | |
| |