Jump to content

[SOLVED] simple but confused; page links


liamloveslearning

Recommended Posts

Hey everyone, im presuming this is really simple only I havent managed to find the answer on google or work it out for myself;

what it is is that I have my web page full of links etc which are controlled by the pages styles, etc all links are white and underlined; only then I have an include which is my nav bar; my navbar links are controlled by my css file which chooses how they look; however when theyre on my page they take up the appearance of mydefault page links, white. is there a way to stop this? or do i just need to give all the links a class of their own?

Link to comment
https://forums.phpfreaks.com/topic/113235-solved-simple-but-confused-page-links/
Share on other sites

You will need to create a class for all links in your nav bar. 

 

a.navbar {

text-decoration:none;

color: #000000;

}

 

Then use this in the code

 

<a href="page1.php" class="navbar">Page 1</a>

<a href="page2.php" class="navbar">Page 2</a>

<a href="page3.php" class="navbar">Page 3</a>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.