MyBB Community Forums

Full Version: How to make a link text different color?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you make links in posts/pms a different color from other text? Like for example:

I love http://www.chitnchat.net it is a great forum.

The link is blue and the text is grey, how do I change that so my links are blue on my site? Thanks!
theme's global.css consists code like below to show links in blue color
a:link {
    color: blue;
    text-decoration: none;
}
(2013-04-26, 11:51 AM).m. Wrote: [ -> ]theme's global.css consists code like below to show links in blue color
a:link {
    color: blue;
    text-decoration: none;
}


Where?
admin panel >> themes >> your forum's active theme >> global.css >> Edit Stylesheet: Advanced Mode
(2013-04-26, 12:13 PM).m. Wrote: [ -> ]admin panel >> themes >> your forum's active theme >> global.css >> Edit Stylesheet: Advanced Mode

How do I get it so it does it only for posts/pms? Right now when I do that it changes link text color for everywhere on the forum, wrecking the theme.
add below code at the end of global.css
.post_content a  {
        color: blue !important; 
        text-decoration: none!important;
       }
(2013-04-26, 02:44 PM).m. Wrote: [ -> ]add below code at the end of global.css
.post_content a  {
        color: blue !important; 
        text-decoration: none!important;
       }

Do I still add the other code or only this one?
^ only the above (post #6)