Log In · Register

 
different link properties in different DIV
acidbreeze
post Sep 23 2004, 08:34 PM
Post #1


chri$
******

Group: Member
Posts: 1,014
Joined: Jul 2004
Member No: 29,284



I want one div box to have green bolded links and when you hover it turns black.
The other should have black, underlined links, and when you hover the underline goes away.
How do I do this?
 
 
Start new topic
Replies
queen
post Sep 24 2004, 03:42 PM
Post #2


‹(. .)›
******

Group: Official Member
Posts: 2,367
Joined: Jun 2004
Member No: 20,089



use 2 stylesheets. just use an iframe for one of the divs so you can link to a different css.

QUOTE
<style type="css/text">
a:VISITED {
color: #FFFFFF;
text-decoration: none;
font-style: normal;
font-family: Lucida Console
font-size: 10pt;
text-transform: uppercase;
cursor: hand;
}
a:LINK {
color: #FFFFFF;
text-decoration: none;
font-style: normal;
font-family: Lucida Console
font-size: 10pt;
text-transform: uppercase;
cursor: hand;
}
a:HOVER {
color: #FFFFFF;
font-style: normal;
text-decoration: none;
font-family: Lucida Console
font-size: 10pt;
text-transform: uppercase;
cursor: hand;
}
</style>


or you can just manually change all the link colors, for example:

QUOTE
<body link="#C0C0C0" vlink="#808080" alink="#FF0000"><a href="http://www.blah.com">blah</a>


vlink= color for visited link
alink= color for active link (when you click on it)
link= color for how it should appear before clicking

...unfortunately there is no hover. you'll need css to add that.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: