HighDots Forums  

Can you have a hover effect on a TD in IE?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Can you have a hover effect on a TD in IE? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
madsgormlarsen@gmail.com
 
Posts: n/a

Default Can you have a hover effect on a TD in IE? - 08-08-2005 , 10:22 AM






I can not get hover effect on a TD to work in IE, it seams you can not
have
a hover on a td in IE?

I have treid this

body.section-2 td.current,
body.section-2 td.submenu,
body.section-2 td.bredtsubmenumellemrumhojre,
body.section-2 td.bredtsubmenumellemrumvenstre {
background-color: #ffc233;

}

body.section-2 td.submenucurrent {
background-color: #ffcc66;

}

body.section-2 td.submenu:hover {
background-color: #ffcc66;

}

and this

body.section-2 td.current,
body.section-2 td.submenu,
body.section-2 td.bredtsubmenumellemrumhojre,
body.section-2 td.bredtsubmenumellemrumvenstre {
background-color: #ffc233;

}

body.section-2 td.submenucurrent,
body.section-2 td.submenu:hover {
background-color: #ffcc66;

}

Which works in firefox, but not in IE.

Then I treid setting the hover effect on the link, like this.

a.submenulink:hover {
background-color: #ff0000;

}

But then the entire cell is not filled out.

Can you see a fix for this problem?

Se problem here http://madsgormlarsen.dk/andersen/
Mads


Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-08-2005 , 10:44 AM






madsgormlarsen (AT) gmail (DOT) com wrote:
Quote:
I can not get hover effect on a TD to work in IE, it seams you can not
have
a hover on a td in IE?
Correct, :hover has no effect in IE with the sole exception of a:hover.
A serious deficiency.


Reply With Quote
  #3  
Old   
madsgormlarsen@gmail.com
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-08-2005 , 12:03 PM



Thanks

Can one then somehow make it fill out the td cell?

Mads


Reply With Quote
  #4  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-08-2005 , 12:42 PM



madsgormlarsen (AT) gmail (DOT) com wrote:
Quote:
Thanks

Can one then somehow make it fill out the td cell?
Sorry, I missed where you asked that originally. If the link is the
entire content of the cell, then set display: block for the link. It
will then effectively take up the entire cell (except possibly for any
padding on the cell or margin on the link).


Reply With Quote
  #5  
Old   
Dr.Tube
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-09-2005 , 03:34 AM



Hi Mads,

Quote:
I can not get hover effect on a TD to work in IE, it seams you can
not
have a hover on a td in IE?
snip
Can you see a fix for this problem?
See Peterneds site:
http://www.xs4all.nl/~peterned/csshover.html
This might be what you're looking for...

--
Kind regards,
Xavier van Unen





Reply With Quote
  #6  
Old   
madsgormlarsen@gmail.com
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-12-2005 , 05:30 AM



Thanks for the tip, but is there not a simpler solution? I have a
javascript that gives a hover effect on a tr, is there not something
like that for a td.

Mads


Reply With Quote
  #7  
Old   
Els
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-12-2005 , 05:32 AM



madsgormlarsen (AT) gmail (DOT) com wrote:

Quote:
Thanks for the tip, but is there not a simpler solution? I have a
javascript that gives a hover effect on a tr, is there not something
like that for a td.
Now I may be mistaken, but weren't you the person who after some
instructions understood how to quote when replying to a message?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -


Reply With Quote
  #8  
Old   
dingbat@codesmiths.com
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-12-2005 , 05:46 AM



madsgormlarsen (AT) gmail (DOT) com wrote:
Quote:
Thanks for the tip, but is there not a simpler solution?
Embed an <a> in it and set the <a>'s width to 100%
Then base all your CSS selectors around a:hover

Ugly, but gets the job done most of the time.



Reply With Quote
  #9  
Old   
madsgormlarsen@gmail.com
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-12-2005 , 05:48 AM



It can be done like this,
http://activedeveloper.dk/artikler/d...?articleid=247 , with
javascript.

but woudl be nice if one could compensate fro margin and padding, and
just use css on a link.

Mads


Reply With Quote
  #10  
Old   
madsgormlarsen@gmail.com
 
Posts: n/a

Default Re: Can you have a hover effect on a TD in IE? - 08-12-2005 , 06:57 AM



Quote:
Now I may be mistaken, but weren't you the person who after some
instructions understood how to quote when replying to a message?
Hi Els

Yes, I am guilty as charged, I am that surden someone, and I will
qoute, I promisse I will qoute. I feel ashamed of myself, I have been
sinful.

Where have you been, I have missed your participation in this
discussion. Hope you will enligtend me, on this problem.




Mads
tj 91 192



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.