| css specific to elements
|
roclimb

msg:4410395 | 7:25 pm on Jan 24, 2012 (gmt 0) | Was wondering if anyone knows of a way to use css style sheet to target a specific set of elements like a navigation bar only. I have a style sheet for my entire page but want a separate sheet to target only my navigation bar. the navigation bar is composed f several divs and Ul Li classes. I want them targeted by one css style sheet. How can I do this? Thanks Rob
|
Marshall

msg:4410427 | 9:08 pm on Jan 24, 2012 (gmt 0) | If you navigation <div> has a specific id, you can target specific items within it: #Nav li a { color: #F00; text-decoration: none; } For example. Begin whatever you want to target with the id of its parent. You can drill down as far as you need. #Nav ul li ul li a { blah blah } Marshall
|
roclimb

msg:4410466 | 11:29 pm on Jan 24, 2012 (gmt 0) | That worked great thanks
|
Marshall

msg:4410532 | 2:38 am on Jan 25, 2012 (gmt 0) | Glad to help. Marshall
|
|
|