Connecting Tech Pros Worldwide Help | Site Map

CSS Link Color within a Style

Albert
Guest
 
Posts: n/a
#1: Sep 3 '08
In the code below how can I set specific Link Color attributes that
will only work within .style2 ?

<style type="text/css">
<!--
body {
background-image: url(images/rep_1.jpg);
margin-top: 35px;
}
a:link {
color: #333333;
}
a:visited {
color: 333333;
}
a:hover {
color: #CCCCCC;
background-color: #333333;
text-decoration: none;
}
a:active {
color: #333333;
}
..style2 {
font-size: 12px;
color: #999999;
}
-->
</style>
dorayme
Guest
 
Posts: n/a
#2: Sep 3 '08

re: CSS Link Color within a Style


In article
<f96ca46a-c8bf-4b82-8f43-1b297c2286a4@z11g2000prl.googlegroups.com>,
Albert <albert@netmation.comwrote:
Quote:
In the code below how can I set specific Link Color attributes that
will only work within .style2 ?
>
<style type="text/css">
<!--
body {
background-image: url(images/rep_1.jpg);
margin-top: 35px;
}
a:link {
color: #333333;
}
a:visited {
color: 333333;
}
a:hover {
color: #CCCCCC;
background-color: #333333;
text-decoration: none;
}
a:active {
color: #333333;
}
.style2 {
font-size: 12px;
color: #999999;
}
-->
</style>
You can try

..style2 a:link {...}
..style2 a:visited {...}

etc

--
dorayme
Lars Eighner
Guest
 
Posts: n/a
#3: Sep 3 '08

re: CSS Link Color within a Style


In our last episode,
<f96ca46a-c8bf-4b82-8f43-1b297c2286a4@z11g2000prl.googlegroups.com>, the
lovely and talented Albert broadcast on comp.infosystems.www.authoring.html:
Quote:
In the code below how can I set specific Link Color attributes that
will only work within .style2 ?
You could ask this in the CSS group, you know.

..style2 a:link {stuff}
..style2 a:hover {stuff}
..style2 a:visited {stuff}
..style2 a:active {stuff}



Quote:
><style type="text/css">
><!--
body {
background-image: url(images/rep_1.jpg);
margin-top: 35px;
}
a:link {
color: #333333;
}
a:visited {
color: 333333;
}
a:hover {
color: #CCCCCC;
background-color: #333333;
text-decoration: none;
}
a:active {
color: #333333;
}
.style2 {
font-size: 12px;
color: #999999;
}
-->
></style>
--
Lars Eighner <http://larseighner.com/usenet@larseighner.com
Love: The warm feeling you get towards someone who meets your neurotic needs.
Jonathan N. Little
Guest
 
Posts: n/a
#4: Sep 3 '08

re: CSS Link Color within a Style


Albert wrote:
Quote:
In the code below how can I set specific Link Color attributes that
will only work within .style2 ?
>
<style type="text/css">
<!--
^^^

BTW there is *no* reason to use html comments within your style element.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Andreas Prilop
Guest
 
Posts: n/a
#5: Sep 3 '08

re: CSS Link Color within a Style


On Tue, 2 Sep 2008, Albert wrote:
Quote:
<style type="text/css">
<!--
It is really nice that you care about readers with Netscape 2!
But many readers now have already Netscape 3 - and Netscape 3
doesn't need these silly pseudo-comments any more.
Try also Netscape 3!

--
In memoriam Alan J. Flavell
http://www.alanflavell.org.uk/charset/
Closed Thread