Topic: css :hover for td (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11141" title="Pages that link to Topic: css :hover for td (Page 1 of 1)" rel="nofollow" >Topic: css :hover for td <span class="small">(Page 1 of 1)</span>\

 
Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 01-29-2004 02:43

Hello,
I have a td... when I hover the mouse over it, I'd like to change the color of the td. Here is what i have:

td.configure_meet_left:hover {
background-color:green;
}

In english:
" A TD with class of 'configure_meet_left' when hover, set background color=green "

Is this correct syntax? (doesn't work for me yet)

Veneficuz
Paranoid (IV) Inmate

From: A graveyard of dreams
Insane since: Mar 2001

posted posted 01-29-2004 03:21

That should work, and it does in both Mozilla and Opera, but IE doesn't get it right. There are ways to make it work in both Mozilla+Opera and IE.

After some quick Googling I would the following article that might be of interest: http://www.xs4all.nl/~peterned/csshover.html

_________________________
"There are 10 kinds of people; those who know binary, those who don't and those who start counting at zero"
- the Golden Ratio -

Karl
Bipolar (III) Inmate

From: Phoenix
Insane since: Jul 2001

posted posted 01-29-2004 05:55

New thing to learn - IE Behaviours (.htc)

Okay a bit more complicated a solution then I was hoping for. A solution none the less. Wow, way cool menu system there. I guess a good reason to learn behaviours.

Thanks for the tips!

ozphactor
Maniac (V) Inmate

From: California
Insane since: Jul 2003

posted posted 02-03-2004 21:08

Well, behaviors are IE-only, and the only reason we use them in this case is to work (or hack) around IE's shortcomings in CSS support.

I'd spend more time learning proper CSS, than this IE junk.

Clay
Nervous Wreck (II) Inmate

From: Utreg, NL
Insane since: Nov 2002

posted posted 02-05-2004 09:14

fyi,

this IE junk is meant to let you use proper CSS without having to think about IE's shortcomings. And it's IE only because only IE needs fixing. No need to even look at the htc, just hook it up. Please don't confuse that with oldskool IE only junk.

peterned



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu