?
Solved

not using the hover command for links

Posted on 2001-06-09
3
Medium Priority
?
221 Views
Last Modified: 2012-06-27
I currently have a style sheet setup.  It uses the a:hover command.  The problem is there are some links I do not want to have the hover command. I

s there a way to disable it for the links that I do not want to use the hover command for?
0
Comment
Question by:isilver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
dij8 earned 200 total points
ID: 6171076
You can set a class for them.  Or a class for the ones you want to hover.  Either way.

<style type="text/css">
a:hover, a:active {
  color:#6699cc;
}
a:link, a:visited {
  color:#336699;
}
a:hover.wontchange, a:active.wontchange, a:link.wontchange, a:visited.wontchange {
  color:#336699;
}
</style>
<a href="nextpage.htm">next page</a>
<a href="prevpage.htm" class="wontchange">Previous page</a>
0
 
LVL 1

Author Comment

by:isilver
ID: 6171318
I could not get that to work.  However I declared a class called A:Hover.menu1.  I did not have a regular hover class.  Then I named all the rollover hyperlinks with menu1 and it worked.
0
 
LVL 10

Expert Comment

by:dij8
ID: 6171603
Glad to help.  Thanks for the A.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Unordered lists (HTML ul tags) are very handy to create menus of all types, shapes and sizes.  All it takes is a little knowledge of CSS and the possibilities are endless. First off, you should know the general format for menus created using the …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month14 days, 4 hours left to enroll

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question