RE: [WSG] anchor, classes and IDs

2004-11-19 Thread Iain Gardiner
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=idNamea href=index.html Home/aa href=sub1.html
Sub1/a//div

As it is right now I have to declare the class to each anchor usage:

div id=idNamea href=index.html class=footerHome/aa
href=sub1.html class=footerSub1/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
**



RE: [WSG] anchor, classes and IDs

2004-11-19 Thread helmut
AHH!!

Thank you very much

...helmut

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Iain Gardiner
Sent: Friday, November 19, 2004 5:27 PM
To: [EMAIL PROTECTED]
Subject: RE: [WSG] anchor, classes and IDs

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=idNamea href=index.html Home/aa href=sub1.html
Sub1/a//div

As it is right now I have to declare the class to each anchor usage:

div id=idNamea href=index.html class=footerHome/aa
href=sub1.html class=footerSub1/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
**





**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**