Click to See Complete Forum and Search --> : Changing Link Colour
Rowan06
02-24-2006, 09:29 AM
When you make a post in my forum the text is white and thats fine, but when you do something like http://www.hazardforum.co.uk its also white.
How can I make it so that links show up in yellow????
Thanks :)
Houdini
02-24-2006, 10:19 AM
You are using phpBB forums so go to your template folder for whatever the template name is and open the templatename.css and look for
/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:visited { color : #993366; }
a:active { color : #215DC6; }
a:hover { text-decoration: underline; color : #000000; } Then just enter the hex value for the link
Rowan06
02-24-2006, 10:24 AM
/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:active,a:visited { color : #FFFFCC; text-decoration: none; }
a:hover { text-decoration: underline; color : #FFFFCC; }
hr { height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
Thats what mine is showing, so its saying the link colour is a dull yellow, and thats not right cause they show in white.
Are you using any custom class tags for your links?
The code below is for a default <a href...> tag...
Rowan06
02-24-2006, 11:32 AM
So.... sorry to bother you but, how would i sort this then ??
Look at you page source and locate where the link is.
Note if there's any class tag in it. If there is, then you need to locate a tag with the same name in you CSS file and tweak there. If you won't find any class tag, there might be an id tag. If there is one, look in the header of your doc as it could be set there.
Now if that's not there as well see if there's something like style="" in your href tag and tweak it there.
If that fails, and your <a href> tag does not have any of the mentioned above -- make sure your page points to a correct css file, i.e. check the path to css.
It's not s bad as it sounds... Good luck.
Houdini
02-24-2006, 02:40 PM
IF you don't know the hex for yellow just enter yellow it is a valid css color name and don't put the # in front like
a:link,a:active,a:visited { color : yellow; text-decoration: none; }
Rowan06
02-24-2006, 07:15 PM
OK I done that but its changed every single link in the forum. I only wanted the links that were posted in a post.
http://img526.imageshack.us/img526/2430/dsdgdfg1em.jpg
So do you know how I make it so that its just the links that you post in a topic are yellow, not every link in the forum???
Thanks
Houdini
02-24-2006, 10:20 PM
Look for this in your template.css file for your template and find the below
/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}Now just change the a:postlink:link to
a.postlink:link { text-decoration: none; color : yellow }
Rowan06
02-25-2006, 08:08 AM
OK m8 in my subblack.css file the code is now:
/* The content of the posts (body of text) */
.postbody { font-size : 12px; color: #FFFFCC;}
a.postlink:link { text-decoration: none; color : #ffd800; }
a.postlink:visited { text-decoration: none; color : #ffd800; }
a.postlink:hover { text-decoration: none; color : #ffd800; }
But look at a preview of a post with a link in my forum here:
http://img113.imageshack.us/img113/5457/gggg7tc.jpg
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.