751 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • United States
CyberShot says

I am having trouble with my links. I have a nav area in the header.php file that has links set to display white. All is good. But then I have in page.php there are links that I need to be blue. But for some reason, the css is turning all links blue. for the nav I have

nav a:link,a:visited { color: white; }

for the page.php I have

.entry a:link,a:visited { color: blue; }

any ideas?

1175 posts
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
mabuc says

try this one:

.nav a:link, .nav a:visited { color: #FFF; } .entry a:link, .entry a:visited { color: blue; }

try to change the HTML (Hexa) value of the color blue. ex. #FF0000.

76 posts
  • Bought between 1 and 9 items
  • Canada
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
g_gilmore says

Just remember that if it’s for a specific class like .nav, and you’re putting it all on one line, you have to repeat ”.nav” for each element:

.nav a:link, .nav a:visited, .nav a:hover, .nav etcetc { color:white; }

751 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 1 and 9 users
  • United States
CyberShot says

Thanks guys. that did the trick.

by
by
by
by
by
by