Something like this Fiddle
<div class="leftnav">
<a>http:/google.com</a>
</div>
.leftnav a {color:black}
Question
Im trying to turn the color of links in a div to white but only in that div in css. Ive tryed pseudo code as below any help woul;d be appreciated.
.leftnav : a {color:white;}
Solution
Something like this Fiddle
<div class="leftnav">
<a>http:/google.com</a>
</div>
.leftnav a {color:black}
OTHER TIPS
.leftnav a
{
color:white;
}
This is what you looking for!
.leftnav a { color: white; }
You put a ":" in there that didn't belong there.