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;}

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top