Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-28-2012, 09:10 AM   PM User | #1
dbz77551
New to the CF scene

 
Join Date: Dec 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dbz77551 is an unknown quantity at this point
Css help

I don't understand that selector

#menu-bar .current a, #menu-bar li:hover > a {

why > ?
dbz77551 is offline   Reply With Quote
Old 12-28-2012, 11:58 AM   PM User | #2
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
When you use the > sign in CSS, it means that you want to target only the <a> elements which are direct children of the #menu-bar list items <li>(i'm presuming it's an <ul>)

Regards,

Lc.
LearningCoder is offline   Reply With Quote
Old 12-28-2012, 02:46 PM   PM User | #3
dbz77551
New to the CF scene

 
Join Date: Dec 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
dbz77551 is an unknown quantity at this point
yes menu-bar = ul

thank you.
dbz77551 is offline   Reply With Quote
Old 12-28-2012, 03:52 PM   PM User | #4
LearningCoder
Regular Coder

 
LearningCoder's Avatar
 
Join Date: Jan 2011
Location: The Pleiades
Posts: 849
Thanks: 67
Thanked 28 Times in 28 Posts
LearningCoder is an unknown quantity at this point
So basically, when you hover over the list-item, any children which are <a> links will get the styles which you declare.

Kind regards,

LC.
LearningCoder is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:55 PM.


Advertisement
Log in to turn off these ads.