Topic: more CSS wonders Pages that link to <a href="https://ozoneasylum.com/backlink?for=10807" title="Pages that link to Topic: more CSS  wonders" rel="nofollow" >Topic: more CSS  wonders\

 
Author Thread
norm
Paranoid (IV) Inmate

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

IP logged posted posted 09-22-2002 06:11 Edit Quote

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

IP logged posted posted 09-22-2002 06:35 Edit Quote

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

IP logged posted posted 09-22-2002 07:15 Edit Quote

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

IP logged posted posted 09-22-2002 10:14 Edit Quote

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