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
https://forums.phpfreaks.com/topic/67138-links-are-the-wrong-colour/
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

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>

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

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.