Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 01-12-2009
Member
 
Join Date: Aug 2009
Posts: 59
Impossible to hover with IE

To change the color of my <tr> in <table> after flying over, I use the following style:
Code:
.trcolor2 {
background-color:#E8E8EA;
font-size:12px;
}
tr.trcolor2:hover {
background-color:#D7D7FF;
font-size:12px;
}
This code works fine on Firefox! But IE8 can not see the files. Why can't I am unable to change this on Internet Explorer 8?
Reply With Quote
  #2  
Old 01-12-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: Impossible to hover with IE

I do not know if it is always the case with IE8 but with IE6, the :hover was accepted on the <a> tag itself.
Reply With Quote
  #3  
Old 01-12-2009
Member
 
Join Date: Aug 2009
Posts: 59
Re: Impossible to hover with IE

Someone told me the same thing! I do not know how to work around, so can you see the highlighted line. With PhpMyAdmin for example, they have managed to do so. But I even worked their style file without finding out how they did. Can anyone help me?
Reply With Quote
  #4  
Old 01-12-2009
Member
 
Join Date: Nov 2008
Posts: 1,185
Re: Impossible to hover with IE

It works for me in IE8. A style :hover on a <tr> or <td> gives me the expected result. Anyway, with IE, there is always a combination of attributes that can bring that without really knowing why. Check also if there is no CSS rule that takes precedence over the :hover (there a debug tool integrated with IE8, never tested).
Reply With Quote
  #5  
Old 01-12-2009
Member
 
Join Date: Nov 2008
Posts: 996
Re: Impossible to hover with IE

If you do not put doctype on your page, your browser goes into compatibility mode IE6 (not even IE7 but IE6) and thus :hover never work.

There are 3 rendering modes in IE8

- The rendering mode of IE8, if your site is well constructed and meets the standards (in fact especially if your site has a correct doctype)
- The rendering mode of IE7, if you click the rendering button or if you declare a meta tag
- The mode rendering IE6, if you do not have a doctype on your page, and IMHO is the case for you.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Impossible to hover with IE"
Thread Thread Starter Forum Replies Last Post
Display URL when you hover on a hypelink in Word 2010 Leela Windows Software 1 11-07-2012 10:56 AM
is there any possible way to create a Hover Button on Joomla Padmasola Software Development 10 17-01-2012 08:40 AM
How to create Hover Hyperlink using CSS in HTML Sanju Baba Software Development 3 05-01-2012 11:44 AM
Mouse Hover Activate Dick Vista Help 22 12-01-2009 03:48 PM
Desktop Icon Hover Highlight Saucer Man Vista Help 7 03-06-2008 05:31 AM


All times are GMT +5.5. The time now is 12:40 PM.