Thread: Multiple CSS Classes on 1 Page?
Results 1 to 3 of 3
Related
-
background color in classes not appearing Forum: CSS Forum
Replies: 3 -
Single Page, Multiple Backgrounds? Forum: Website Scripts Forum
Replies: 6 -
multiple popup windows on one page Forum: Javascript Forum
Replies: 1 -
Multiple Rollovers - HELP!! Forum: Javascript Forum
Replies: 3 -
Nested "classes" ? Forum: CSS Forum
Replies: 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?
Example:
http://www.amcon.com/amy/ipg/contractvoice.html
-
12-02-2003, 11:48 AM #2bald headed old fart
Status- Offline
Join Date- Aug 2003
Location- chertsey, a small town 25 miles south west of london, england.
Posts- 739
Hi there amyinomaha,
Do your style sheet like this...
a.left:link
a.left:visited
a.left:hover
a.left:active
a.main:link
a.main:visited
a.main:hover
a.main:active
and your anchors like this...
LEFT NAVICATION
<a class="left" href="">
MAIN
<a class="main" href="">
cthead
p.s. you may find w3schools instructiveLast 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.mail {
background-color: transparent;
color: yellow;
}
a:hover.mail {
background-color: transparent;
color: red;
}
<a href="mailto:nporter@interpublic.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.
HTH
Dan.
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum