Topic: more CSS wonders (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10807" title="Pages that link to Topic: more CSS  wonders (Page 1 of 1)" rel="nofollow" >Topic: more CSS  wonders <span class="small">(Page 1 of 1)</span>\

 
norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 09-22-2002 06:11

Wow! I just got done looking at some very impressive CSS (I'm at that impressionable age), and I must now confess my CSS ignorance. I actually thought I knew CSS.
http://www.meyerweb.com/eric/css/edge/menus/demo.html

What is the difference between these two declarations?
#rtnv > ul {******}
#rtnv ul {******}

I can't find anything about ">" in any of my books.
Would someone be kind enough to enlighten me?

when I know everything, will my brain
stop hurting so much when I code?

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 09-22-2002 06:35

When in doubt, consult www.w3.org . In this case, http://www.w3.org/TR/REC-CSS2/ , and more specifically, http://www.w3.org/TR/REC-CSS2/selector.html .

#rtnv > ul {******}

this matches any UL element that is a direct child of an element with ID rtnv. It can't be a child of a child of it, or anymore than one level down.

#rtnv ul {******}

This matches any UL element that is inside an element with ID rtnv. It can be any number of levels down.

The former isn't supported by most browsers.

norm
Paranoid (IV) Inmate

From: [s]underwater[/s] under-snow in Juneau
Insane since: Sep 2002

posted posted 09-22-2002 07:15

Thanks Slime, that clarifies things. I have added the w3.org site to my reference list. I really do try and research things before crying for help, but this one was being quite elusive.

when I know everything, will my brain
stop hurting so much when I code?

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-22-2002 10:14

When you're in doubt about CSS selectors, consult SelectORacle - English & Spanish translations of CSS2 and CSS3 selectors...






Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu