Jump to content

Links are the wrong colour


SirChick

Recommended Posts

I have links on my page but they keep going a blue colour when they should be white! I dont know how to stop it from being blue :S

 

 

this is what i have:

<font style="font-size:13px" color="#FFFFFF" face="Arial"><b><u><a href="crimeslist.php">Back To Crime List</a> </u> </b> </font>

 

yet it comes in This colour

Link to comment
Share on other sites

I think you can add a css style for url's, just change these to your variables

 

a:link { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
}
a:visited { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
}
a:hover { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: underline;
}
a:active { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
}

 

#7d7d7d is silver, change to what you want, white would be #FFFFFF

Link to comment
Share on other sites

woah hand on what do i do with i have to put that after "every" link ? :S

 

no, put it in either a new css style sheet, or in your html pages right before </head>

 

if you put it before closing of head tag, be sure to add style

 

so it would be

 

<style>
a:link { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
}
a:visited { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
}
a:hover { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: underline;
}
a:active { 
color: #7d7d7d;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
text-decoration: none;
}
</style>

Link to comment
Share on other sites

can i make it in an include n then include it using php just before </head> ?

 

I'm not sure what you mean...if you put right before head end close tag the code I posted with style tags around, it should work...

 

alternatively, if you simply create a new css file, then link to it at the top of the pages so you don't need that code in every page

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.