Thread: Multiple CSS Classes on 1 Page?
Results 1 to 3 of 3
background color in classes not appearing Forum: CSS ForumReplies: 3
Single Page, Multiple Backgrounds? Forum: Website Scripts ForumReplies: 6
Nested "classes" ? Forum: CSS ForumReplies: 1
12-02-2003, 10:12 AM #1
Multiple CSS Classes on 1 Page?
I need to have multiple CSS classes on a page for the links. For instance, the links on the left hand navigation area are set up correctly - with the white. However, I want to have different colors for the email links on the right hand "main" area as white doesn't work because of the background color. How do I do this?
12-02-2003, 11:48 AM #2bald headed old fart
- Aug 2003
- chertsey, a small town 25 miles south west of london, england.
Hi there amyinomaha,
Do your style sheet like this...
and your anchors like this...
<a class="left" href="">
<a class="main" href="">
p.s. you may find w3schools instructive
Last edited by coothead; 12-02-2003 at 11:52 AM.
12-05-2003, 11:16 AM #3
Looks like the "mailto:" is defaulting to A.link definition.
You could create another definition to use on the "content" portion of your page:
<a href="mailto:email@example.com" class="mail">Ned Porter</a>
The background-color will allow the blue of your "content" to show through; I would select text colors that make more sense than shown .