Solved

not using the hover command for links

Posted on 2001-06-09
3
175 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
  • 2
3 Comments
 
LVL 10

Accepted Solution

by:
dij8 earned 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Glad to help.  Thanks for the A.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now