You have the right idea, but the wrong methodology. The selectors you need
to use are:
#idName {
font-family: Verdana;
}
#idName a:link {
color: #FFF;
}
#idName a:visited {
color: #FFF;
}
#idName a:hover {
color: #FFF;
}
#idName a:active {
color: #FFF;
}
But it's much easier to write it out this way:
#idName a:link, #idName a:hover, #idName a:visited, #idName a:active
{
color: #fff;
}
Iain
------------------
Iain Gardiner
http://www.firelightning.com
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of helmut
Sent: 19 November 2004 23:15
To: [EMAIL PROTECTED]
Subject: [WSG] anchor, classes and IDs
Hello All,
This might be a dumb question but I don't really know how to search
correctly in google for my answer.
Is it possible that any anchor inside a DIV will inherit all the properties
from the DIV?
For example
/***
CSS
**/
#idName {
font-family: Verdana;
}
a.idName:link {
color: FFF;
}
a.idName:visited {
color: #FFF;
}
a.idName:hover {
color: #FFF;
}
a.idName:active {
color: #FFF;
}
<!-- HTML -->
I would like to declare all id once and be done with it.
<div id="idName"><a href="index.html" >Home</a><a href="sub1.html"
>Sub1</a></</div>
As it is right now I have to declare the class to each anchor usage:
<div id="idName"><a href="index.html" class="footer">Home</a>"><a
href="sub1.html" class="footer">Sub1</a ></div>
I hope anyone can understand my question and let me know if it is possible.
I believe it is but I just don't know how exactly declare my classes.
Thank you!
...helmut
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************