Log in

View Full Version : Changing navbar text


nbaphenom
12-19-2008, 08:22 PM
This code is in my css how would i change the font to arial black and center it in the navbar .
#navcontainer ul
{
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
background-color: #222222;
color: transparent;
float: left;
width: 100%;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

}

#navcontainer ul li { display: inline; }

#navcontainer ul li a
{
change font:Verdana;
height: 38px;
padding: 0.2em 1em;
background-color: #222222;
color: White;
text-decoration: none;
float: left;
}

#navcontainer ul li a:hover
{
background-color: #666666;
color: #fff;
}
http://ball2live.com/index.php?styleid=47

Lynne
12-19-2008, 08:48 PM
Why don't you try it by trial and error. You will learn a bit about how css works if you do it that way. Here's a page on font properties - http://www.w3schools.com/css/css_font.asp

nbaphenom
12-19-2008, 09:02 PM
font-weight: bold

i added that tried to make it bold and no luck .

Lynne
12-19-2008, 09:16 PM
You added it..... where? Post the code so we can see if you made a mistake. (Please use the code/html/php tags.)

nbaphenom
12-19-2008, 09:27 PM
#navcontainer ul
{
padding: 0px 0px 0px 0px;
margin: 0px 0px 0px 0px;
background-color: #222222;
color: transparent;
float: left;
width: 100%;
font-weight: bold;
font-family: verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;

}

}

#navcontainer ul li { display: inline; }

#navcontainer ul li a
{
change font:Verdana;
height: 38px;
padding: 0.2em 1em;
background-color: #222222;
color: White;
text-decoration: none;
float: left;
}

#navcontainer ul li a:hover
{
background-color: #666666;
color: #fff;
}
I suck ..

Lynne
12-19-2008, 09:36 PM
I think you should fix your css before you go trying to change it. You have an extra } in there (they always comes in pairs - a { and then a } ) and there is no property called "change font".

And, if it doesn't work under one, try another.

(The code/html/php tags are to the right of the quote button.)

nbaphenom
12-19-2008, 09:41 PM
Yea I was trying to get help and some one told me to put that in there it looked fishy but yeah .