473,486 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CSS: Apply two a:hover style in single page

28 New Member
Hi, i need apply two different hyperlink:hover style cause by different background color.

what i do is, i put css external link as

Expand|Select|Wrap|Line Numbers
  1. a:hover.paging
  2. {
  3.     color: #cc0000; text-decoration: none;
  4. }
  5.  
css style as
Expand|Select|Wrap|Line Numbers
  1. <style type="text/css">
  2.  
  3.     A         {color: #000099; text-decoration: none; }
  4.     A:hover {color: #FFFFFF; text-decoration: none; }
  5.  
  6. </style>
  7.  
HTML code is
Expand|Select|Wrap|Line Numbers
  1. <TR>
  2. <TD>
  3. <a class="paging" > ....
  4. </TD>
  5. <TR>
  6.  
It is ignore paging class. who's know what's wrong is it?
Apr 30 '09 #1
1 3095
Dormilich
8,658 Recognized Expert Moderator Expert
this is cascading. since the inline declaration has precedence over the external file (see CSS cascade) the .paging's declarations are overwritten.

EDIT: if you have FireBug (Firefox Addon) you can see which styles are applied and which are overwritten in the Style section
Apr 30 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
3361
by: LRW | last post by:
Below I'll paste my CSS and the HTML in question. But what's happening is, I'm trying to establish a link behavior for a class that's separate from the normal link class. I've established a: 's...
1
6744
by: dhunter | last post by:
I'm kind of new to CSS and hope someone knows how to fix a problem I've been fighting with for days. I'm trying to create a mouseover navbar with CSS which inserts a colored background JPG that...
7
6830
by: codeslayer | last post by:
Greetings to everyone in ‘forum-land': I have a problem that has plaguing me to no end. It is a CSS-related question, and I have not seen this question posted anywhere in forums or through...
4
1259
by: NWx | last post by:
Hi, Can someone explain me how can I set a CSS for a hyperlink? I have the following definitions in .css file /* definition 1*/ A.HWHeaderLink:hover {
4
2734
by: jereme.goblue | last post by:
The web page at http://www.rossowinspections.com/ has an issue with the left menu. The left menu has 7 links. One of the links doesn't work. Using Firefox 1.5 the Fees link isn't a clickable...
0
1487
by: jereme.goblue | last post by:
The web page at http://www.rossowinspections.com/ has an issue with the left menu. The left menu has 7 links. One of the links doesn't work. Using Firefox 1.5 the Fees link isn't a clickable...
0
3113
by: mjohnson0321 | last post by:
I am trying to incorporate a CSS drop-down menu into a site (suckerfish menu). The menu gets lost behind the content below it, but only on one of the drop downs (News). The error occurs on all of...
7
2273
by: skoggins | last post by:
Hi all, On this page http://69.80.211.183/ in my FF 2.0.0.12 browser, the issue is the vertical white border I am trying to use to separate the right sidebar from the main content. The border...
3
2000
by: Steve | last post by:
Hi All I have an asp.net 2.0 website with the following css file It uses Master pages and in Firefox 3.04 for windows only, 3 of the web pages don't display the Master page properly The...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7123
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6842
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3069
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.