MyBB Community Forums

Full Version: Change custom toplink color?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I added this to my header template:

<li><a href="http://twitter.com/#!/backspacez"><img src="http://www.g3.com/images/twitter.png" alt="Twitter" title="Twitter" />Twitter</a></li>

I want to make it white like the rest of my toplinks but I don't have a CSS class for it. I know little about CSS, what should I do?

Thanks for the help.
Simplest, easiest way for non-css-proficient :
<li><a href="http://twitter.com/#!/backspacez" style="color:white;"><img src="http://www.g3.com/images/twitter.png" alt="Twitter" title="Twitter" />Twitter</a></li>

The "css" correct way :
<li class="whiteLink"><a href="http://twitter.com/#!/backspacez"><img src="http://www.g3.com/images/twitter.png" alt="Twitter" title="Twitter" />Twitter</a></li>

//... and then in your CSS

.whiteLink a:link{ color:white; }

I'm not going to hold your hand or tell you where your CSS sheet is or how to edit it, you can find those via google , the myBB documentation, and exploring your ACP Templates & Style section.

CSS can go a long way, what I've put here are painfully rudimentary examples and even those aren't necessarily the easiest, best, or most "correct" way.