xeonman9000
03-16-2007, 06:02 PM
Hello,
I have in my style sheet, a long section dedicated to my "menulinks", I have two lots of menu links, one as defined in the stylesheet, the other as defined but with a different hove colour. How can I achieve this without re-creating the entire class with that one different property? I tried this:
<a href="" class="menulinks" style="a:hover{color: #6994f5;}">Click</a>
But it didn't work. Here's the rest of the Links Style section:
/* MENU LINKS */
a:link.menulinks{
font-family: arial, sans-serif;
color: #ffffff;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}
a:visited.menulinks{
font-family: arial, sans-serif;
color: #ffffff;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}
a:hover.menulinks{
font-family: arial, sans-serif;
color: #2c29b9;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}
a:active.menulinks{
font-family: arial, sans-serif;
color: #ff9314;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}
I have in my style sheet, a long section dedicated to my "menulinks", I have two lots of menu links, one as defined in the stylesheet, the other as defined but with a different hove colour. How can I achieve this without re-creating the entire class with that one different property? I tried this:
<a href="" class="menulinks" style="a:hover{color: #6994f5;}">Click</a>
But it didn't work. Here's the rest of the Links Style section:
/* MENU LINKS */
a:link.menulinks{
font-family: arial, sans-serif;
color: #ffffff;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}
a:visited.menulinks{
font-family: arial, sans-serif;
color: #ffffff;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}
a:hover.menulinks{
font-family: arial, sans-serif;
color: #2c29b9;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}
a:active.menulinks{
font-family: arial, sans-serif;
color: #ff9314;
font-size: 13pt;
font-weight: bold;
text-decoration: none;
}