?
Solved

not using the hover command for links

Posted on 2001-06-09
3
Medium Priority
?
230 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 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …
Suggested Courses
Course of the Month16 days, 12 hours left to enroll

862 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