MyBB Community Forums

Full Version: Add color to nav bar
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Just wondering how I would add color to just one link in my nav bar? I'm using the "Mybulletin" theme BTW.

Thanks,

Jeremy
Moved to Templates.
Best way is to give that links an css ID in the header template then define it properly in the theme css.
do this
<div id="linky"> (link) </div>
then in additional css at the top, put
#linky {
color: #ffffff;
}

you can get css properties here http://www.w3schools.com/css/css_text.asp
turpentine Wrote:do this
<div id="linky"> (link) </div>
then in additional css at the top, put
#linky {
color: #ffffff;
}

you can get css properties here http://www.w3schools.com/css/css_text.asp

Thanks for the tip, but that is a little beyond my skills right now. Below is the code that I added in my navbar.

<td class="topmenu" width="1%"><a
<li><a href="http://ej8squad.com/chat">Chat</a></li>

I would like to have "Chat" be red or some other color. Is this possible by just modifying the above code?
Change
<li><a href="http://ej8squad.com/chat">Chat</a></li>
to
<li id="linky"><a href="http://ej8squad.com/chat">Chat</a></li>
And go to Admin CP -> Themes -> Modify / Delete -> *the theme you are using* -> Go all the way down on the page you get to.
Till you find "Below you may enter additional CSS to be included with this theme."
Add
#linky {
color: red;
}
in the container below.
I copied the codes exactly as you posted and in the right spots. Still no color. What am I overlooking?
try this:

#linky a{
color: red;
}
Nope still no color. Does it have to do with the Mybulletin theme?