Solved

not using the hover command for links

Posted on 2001-06-09
3
197 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer …
This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

772 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