Domanda

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

È stato utile?

Soluzione

Something like this Fiddle

<div class="leftnav">
    <a>http:/google.com</a>
</div>

.leftnav a {color:black}

Altri suggerimenti

.leftnav a
{
color:white;
} 

This is what you looking for!

.leftnav a { color: white; } 

You put a ":" in there that didn't belong there.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top