문제

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

도움이 되었습니까?

해결책

Something like this Fiddle

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

.leftnav a {color:black}

다른 팁

.leftnav a
{
color:white;
} 

This is what you looking for!

.leftnav a { color: white; } 

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top