![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
ul div#navigation { list-style-type: none; padding: 0; margin: 0; } That didn't help. Just before I posted this I tried "#navigation ul { list-style-type: none; }". That WORKED! (I didn't include this in the published version.) So what's up? |
#3
| |||
| |||
|
|
In article 1186717603.684796.293... (AT) x35g2000prf (DOT) googlegroups.com>, RichardL <RichardDummyMailbox58... (AT) USComputerGurus (DOT) com> wrote: ul div#navigation { list-style-type: none; padding: 0; margin: 0; } That didn't help. Just before I posted this I tried "#navigation ul { list-style-type: none; }". That WORKED! (I didn't include this in the published version.) So what's up? Well, without looking closely, ul div#navigation speaks to a div that is inside a ul, how likely is that in a well ordered real world? Whereas #navigation ul speaks to a very likely thing, namely a list inside an element of id "navigation", probably a div. -- dorayme |
#4
| |||
| |||
|
|
dorayme wrote: So what's up? Well, without looking closely, ul div#navigation speaks to a div that is inside a ul, how likely is that in a well ordered real world? Whereas #navigation ul speaks to a very likely thing, namely a list inside an element of id "navigation", probably a div. Hi dorayme, Great! So the semantics of "x y{stuff}" is the stuff applies to the y object subordinate to the x object. That's really what I didn't know. .... But if I had been aware of the semantics you explained, I wouldn't have jumped through so many hoops to get this working. |
#5
| |||
| |||
|
|
RichardL wrote: dorayme wrote: So what's up? Well, without looking closely, ul div#navigation speaks to a div that is inside a ul, how likely is that in a well ordered real world? Whereas #navigation ul speaks to a very likely thing, namely a list inside an element of id "navigation", probably a div. Hi dorayme, Great! So the semantics of "x y{stuff}" is the stuff applies to the y object subordinate to the x object. That's really what I didn't know. ... But if I had been aware of the semantics you explained, I wouldn't have jumped through so many hoops to get this working. Take a look athttp://www.htmldog.com/guides/cssintermediate/grouping/ Congratulations, you have graduated to the "intermediate" class now! <g -- dorayme |
|
Congratulations, you have graduated to the "intermediate" class now! <g |
![]() |
| Thread Tools | |
| Display Modes | |
| |