SirChick Posted August 28, 2007 Share Posted August 28, 2007 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 More sharing options...
makaveli80 Posted August 28, 2007 Share Posted August 28, 2007 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 https://forums.phpfreaks.com/topic/67138-links-are-the-wrong-colour/#findComment-336735 Share on other sites More sharing options...
SirChick Posted August 28, 2007 Author Share Posted August 28, 2007 woah hand on what do i do with i have to put that after "every" link ? :S Link to comment https://forums.phpfreaks.com/topic/67138-links-are-the-wrong-colour/#findComment-336743 Share on other sites More sharing options...
makaveli80 Posted August 28, 2007 Share Posted August 28, 2007 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 https://forums.phpfreaks.com/topic/67138-links-are-the-wrong-colour/#findComment-336754 Share on other sites More sharing options...
SirChick Posted August 28, 2007 Author Share Posted August 28, 2007 can i make it in an include n then include it using php just before </head> ? Link to comment https://forums.phpfreaks.com/topic/67138-links-are-the-wrong-colour/#findComment-336756 Share on other sites More sharing options...
makaveli80 Posted August 28, 2007 Share Posted August 28, 2007 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 https://forums.phpfreaks.com/topic/67138-links-are-the-wrong-colour/#findComment-336760 Share on other sites More sharing options...
Crew-Portal Posted August 30, 2007 Share Posted August 30, 2007 No using php include() will display the text of the .css! Use <link rel="stylesheet" type="text/css" href="style.css" /> Of course change style.css to whatever style sheet you are using! Link to comment https://forums.phpfreaks.com/topic/67138-links-are-the-wrong-colour/#findComment-337525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.