MyBB Community Forums

Full Version: Link Color Change
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've noticed that you can't change the font colour on a piece of text that is hyper linked. How to allow colour changing?
EDIT: Irreligious out smarted me. Never thought you can do that. Toungue
Are you talking changing it in posts? It's possible, it's just a matter of where you put the code. Example.

This:

[color=#FF0000][url=http://community.mybb.com]http://community.mybb.com[/url][/color]

Will show: http://community.mybb.com (hyperlink without the colour)

This:

[color=#FF0000]http://community.mybb.com[/color]

Will show: http://community.mybb.com (no hyperlink)

But this:

[url=http://community.mybb.com][color=#FF0000]http://community.mybb.com[/color][/url]

Will show: http://community.mybb.com (with hyperlink)
Irreligious is right. Remember, it's all parsed into HTML, where the same thing. Try swapping the <a href=""> and <font color="#FF0000"> tags, and see what happens.

//yes, I know that you should really use CSS, it's just for the sake of demonstration though. Toungue
(2013-02-06, 02:24 AM)pandaa Wrote: [ -> ]//yes, I know that you should really use CSS, it's just for the sake of demonstration though. Toungue
That's right. Rolleyes
It is better to use styling with CSS, not in-line.
Thank for this, it appears to work. Smile
If you did want another way to do this you could have added a new class to your .css

.post_body a:link {
color: blue;
}

Something like that should work.