user1159828
user1159828

Reputation: 1

How To Set The Links In My Footer To White?

Im trying to get the links in my footer white #fff however I want to keep the rest of the links on my page the color they already are. How would I do this?

#footer {
background: #3b5998;
color: #fff;
font: 11px/14px Lucida Grande, Lucida, Verdana, sans-serif;
padding: 5px 20px;
}

Upvotes: 0

Views: 137

Answers (3)

j08691
j08691

Reputation: 207901

#footer a {
background: #3b5998;
color: #fff;
font: 11px/14px Lucida Grande, Lucida, Verdana, sans-serif;
padding: 5px 20px;
}

This will style only the a elements in the div (presumably) with the id of footer.

Upvotes: 0

James Shuttler
James Shuttler

Reputation: 1374

Perhaps you should add a class to each anchor element within your footer instead of applying the colour to the footer itself:

/*Select only footer tagged elements*/
.footerLink
{
 color:#fff;
}

Upvotes: 1

user142162
user142162

Reputation:

In addition to your original CSS, the following will make your footer links white:

#footer a {
    color: #FFF;
}

Upvotes: 0

Related Questions