Forum Moderators: not2easy
I'm still quite new to CSS but I'm getting the hang of it after reading Nick W's great tutorials.
So, my nav bar looks like this:
home . contact . about . specials . news
The text is white on a dark blue background and I want to make the bullets yellow. Right now they are white. How would I zero in on just the bullets for that color?
Sorry for such a newbie question but, well, I am a newbie at this!
Thanks for any help!
Typester
<div id="navbar">
<a href="#">Link1</a> . <a href="#">Link2 .
<a href="#">Link3
</div>
So, I'd style it something like this:
#navbar {
color: yellow;
}
#navbar a {
color: blue;
}
That's kind of simplified but it should demo the point well enough. Is that what you mean?
It's all about selection. The first rule selects everything contained in the #navbar div. The second specifically targets the links, and because it's a more specific rule will override the first for just those links.
Nick