Search code examples
csshyperlinkpseudocode

turning links swhite in a div using psudocode


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}