Solved

CSS -Hover Links / 2 types on the same page

Posted on 1999-01-28
4
226 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
  • 2
  • 2
4 Comments
 
LVL 4

Accepted Solution

by:
rafistern earned 60 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

758 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

19 Experts available now in Live!

Get 1:1 Help Now