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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.