?
Solved

CSS -Hover Links / 2 types on the same page

Posted on 1999-01-28
4
Medium Priority
?
233 Views
Last Modified: 2013-12-03
Hi
I'm using a externe StyleSheet to get some Hover Links on some pages.

However on one particular page I need to have another color on the Hover Links, or the even better, a possibility to use the "normal" link style.

Is there some kind of a "dont use the style for this" TAG?

Hope someone can help me realize this!

Thank you
Jörgen Aström


-----------------
This is the style I use:

A:LINK  {
      color : #40FFFF;
      text-decoration : none;
      font-weight : bold;
}

A:VISITED  {
      color : #40FFFF;
      font-weight : bold;
      text-decoration : none;
}

A:Activ  {
      color : #40FFFF;
      font-weight : bold;
      text-decoration : none;
}

A:Hover  {
      font-weight : bold;
      color : orange;
      

}
0
Comment
Question by:jastroem
[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
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
rafistern earned 240 total points
ID: 1845769
You should be able to override the external sheet by putting:

A:Hover  {
}

as an inline style sheet after the included external one. If that doesn't work, put:

A:Hover  {
  font-weight:normal;
  color:black;
}

0
 

Author Comment

by:jastroem
ID: 1845770
Hi

I'm sorry...
I didn't explained clearly enough. I need inside the SAME page to use the Link Style defined in the Style Sheet. And on the same page I need ALSO the "normal" link style.

One Page - two sort of link styles.

Sorry for the inconvenience.

Cheers
Jörgen
0
 
LVL 4

Expert Comment

by:rafistern
ID: 1845771
Try this

<head>
<style>
a:hover{
      font-weight:bold;
}

a.no:hover{
      font-weight:normal;
      font-style:italic;
}
</style>
</head>
<body>
<a href="javascript:void(0)">a link</a>
<p><a href="javascript:void(0)" class="no">a link</a>
</body>

0
 

Author Comment

by:jastroem
ID: 1845772
Dear rafistern

Thanks a lot, it works just great!

Cheers Jörgen
0

Featured Post

Technology Partners: 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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

771 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