Pierre Rouillet
09-16-2003, 01:23 PM
hello folks
I've got this beautiful definition right here:
a:link {
display:block;
height:19px;
width:116px;
text-decoration:none;
font-weight:normal;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size:9px;
color:#000000;
vertical-align:middle;
margin-left:0px;
margin-top:0px;
background-color:#FF44FF;
border-top: 1px dotted #000000;
padding-left:4px;
padding-top:3px;
}
a:hover {
display:block;
height:19px;
width:116px;
text-decoration:none;
font-weight:normal;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size:9px;
color:#FFFFFF;
vertical-align:middle;
margin-left:0px;
margin-top:0px;
background-color:#000000;
border-top: 1px dotted #000000;
padding-left:4px;
padding-top:3px;
}
Now, I want this to extend not to all links on the page that follows, but only to certain ones. Is there a way to define hover states in a way that applies to certain definable cases only, while excluding others?
I've tried redefining another tag that isn't the <a> tag, but it wouldn't work (it's being ignored); maybe there's a way to write a condition, like 'if it is both within a div who's id is 'menu' and an <a> tag, then do this and this' ? Or some other way to define a hover state that doesn't apply to all links on the entire page?
(if anyone wants to see what I'm working on: http://www.steffiweismann.de/index_final7.html)
thanks in advance
P
I've got this beautiful definition right here:
a:link {
display:block;
height:19px;
width:116px;
text-decoration:none;
font-weight:normal;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size:9px;
color:#000000;
vertical-align:middle;
margin-left:0px;
margin-top:0px;
background-color:#FF44FF;
border-top: 1px dotted #000000;
padding-left:4px;
padding-top:3px;
}
a:hover {
display:block;
height:19px;
width:116px;
text-decoration:none;
font-weight:normal;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size:9px;
color:#FFFFFF;
vertical-align:middle;
margin-left:0px;
margin-top:0px;
background-color:#000000;
border-top: 1px dotted #000000;
padding-left:4px;
padding-top:3px;
}
Now, I want this to extend not to all links on the page that follows, but only to certain ones. Is there a way to define hover states in a way that applies to certain definable cases only, while excluding others?
I've tried redefining another tag that isn't the <a> tag, but it wouldn't work (it's being ignored); maybe there's a way to write a condition, like 'if it is both within a div who's id is 'menu' and an <a> tag, then do this and this' ? Or some other way to define a hover state that doesn't apply to all links on the entire page?
(if anyone wants to see what I'm working on: http://www.steffiweismann.de/index_final7.html)
thanks in advance
P