Solved

CSS -Hover Links / 2 types on the same page

Posted on 1999-01-28
4
228 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
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…

803 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