help!- a:hover problem in FF
Posted: Thu Aug 30, 2007 4:40 pm
SORRY I FORGOT SOME CODE- PLEASE LOOK AT IT OVER AGAIN
I recently downloaded firefox and I'm making my layouts FF compatible-
there's just one problem with the a:hover attribute
I DON'T wan't the font to change when it hovers over anything in "a name"
a example:
if I code somthing simple like this
<style type="text/css">
a:link, a:visited{
font-family: Vrinda;
font-size: 16px;
color: #3ab4c2;
text-decoration: none;
background: none;
font-weight: normal;
}
a:hover{
font-family: Vrinda;
font-size: 16px;
color: lightgreen;
text-decoration: none;
background: none;
font-weight: normal;
}
div {
border: 1px solid lightblue;
overflow: auto;
background: none;
width: 103px;
height: 200px;
}
div.a {
border: 2px SOLID lightblue;
background: none;
overflow: auto;
width: 250px;
height:180;
overflow:hidden;
}
div.b {
border: 1px solid lightblue;
padding: 4px;
width:243px;
height:176px;
overflow:auto;
}
</style>
<table>
<tr>
<td valign="top">
<div>
<a href="#001">
About
</a>
<a href="#002">
Staff
</a>
<a href="#003">
Rules
</a>
</div>
</td>
<td valign="top">
<div class="a">
<A NAME="000">
<div class="b">
<--**** links
</div>
</a>
<A NAME="001">
<div class="b">
about section,
[TEXT THAT I DON'T WANT CHANGING WHEN HOVERED OVER]
</div>
</a>
<A NAME="002">
<div class="b">
staff section, staff goes here
[TEXT THAT I DON'T WANT CHANGING WHEN HOVERED OVER]
</div>
</a>
<A NAME="003">
<div class="b">
rules, website rules go here,
[TEXT THAT I DON'T WANT CHANGING WHEN HOVERED OVER]
</div>
</a>
</div>
</table>
...
----
it works fine in IE and the text doesn't change
but in firefox it does change
I ONLY want the font to change when hovering over a LINK, not when hovering over the content under A NAME,
I recently downloaded firefox and I'm making my layouts FF compatible-
there's just one problem with the a:hover attribute
I DON'T wan't the font to change when it hovers over anything in "a name"
a example:
if I code somthing simple like this
<style type="text/css">
a:link, a:visited{
font-family: Vrinda;
font-size: 16px;
color: #3ab4c2;
text-decoration: none;
background: none;
font-weight: normal;
}
a:hover{
font-family: Vrinda;
font-size: 16px;
color: lightgreen;
text-decoration: none;
background: none;
font-weight: normal;
}
div {
border: 1px solid lightblue;
overflow: auto;
background: none;
width: 103px;
height: 200px;
}
div.a {
border: 2px SOLID lightblue;
background: none;
overflow: auto;
width: 250px;
height:180;
overflow:hidden;
}
div.b {
border: 1px solid lightblue;
padding: 4px;
width:243px;
height:176px;
overflow:auto;
}
</style>
<table>
<tr>
<td valign="top">
<div>
<a href="#001">
About
</a>
<a href="#002">
Staff
</a>
<a href="#003">
Rules
</a>
</div>
</td>
<td valign="top">
<div class="a">
<A NAME="000">
<div class="b">
<--**** links
</div>
</a>
<A NAME="001">
<div class="b">
about section,
[TEXT THAT I DON'T WANT CHANGING WHEN HOVERED OVER]
</div>
</a>
<A NAME="002">
<div class="b">
staff section, staff goes here
[TEXT THAT I DON'T WANT CHANGING WHEN HOVERED OVER]
</div>
</a>
<A NAME="003">
<div class="b">
rules, website rules go here,
[TEXT THAT I DON'T WANT CHANGING WHEN HOVERED OVER]
</div>
</a>
</div>
</table>
...
----
it works fine in IE and the text doesn't change
but in firefox it does change
I ONLY want the font to change when hovering over a LINK, not when hovering over the content under A NAME,