Css help

brokendrone

New Member
Hi Im a newbie here so hope you guys (+ girls) can help me.

I have created a style sheet which has worked nicely for a year or so.

But i want to add new nav bar at the top of my page, i need to have the the text in white rather than
the grey that i have allocated for the rest of the site.

Is there anyway of having 2 colours for links or How do i create an exception to the rule.

This is the code

a:link {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #333333;
text-decoration: underline;

Thanks for your help.
 

petarpan

New Member
Create new div

Like this:

#newbar{
put what you want
}

then create new a class

#newbar a {
font-family: Arial, Helvetica, sans-serif;
font-size: 11px;
color: #fff;
text-decoration: underline;}

put a div newbar in html in appropriete place and you should be OK,




--------------------------
loznica webdizajn
Šabac web015
Valjevo web014
 

AE7

New Member
I would use something of this sort..

Code:
ul.nav li {
display: inline;
}
ul.nav a {
border: 1px dashed #000;
border-bottom: none;
padding: 5px 15px 5px 15px;
margin-right: 5px;
background-color: #EAEAEA;
text-decoration: none;
color: #333;
}
ul.nav {
margin-left: 0;
list-style: none;
padding-left: 0;
padding-top: 6px;
padding-bottom: 5px;
border-bottom: 1px dashed #000;
}

But that's just me...
 
Top