[thelist] css question, hover for div ?
Kid Stevens
kstevens89 at comcast.net
Thu Sep 12 17:53:01 CDT 2002
Tale a look at www.gnuhaus.com/iblog upper right side. Works in all
my Browsers and in Windows too.
div:hover failed in any but Gecko based Browsers
At 4:50 PM -0400 9/12/02, Saila, Craig wrote:
> > -----Original Message-----
>> From: Eduardo Dominguez [mailto:lalo at teligens.com]
>> Sent: September 12, 2002 4:43 PM
>
>> I am trying to change the background color of a div when the
>> mouse hovers. So far, I havent found out how to do this
>> without JS. Is it possible ?
>
> div:hover { background: red; }
>
>AFAIK, only works in Gecko-based browser like Mozilla (it's a CSS2
>thing).
>
>A more supported possibility is this:
> div a { display: block; }
> div a:hover { background: red; }
>with this HTML:
> <div><a href="#">something</a></div>
>
>Obvious drawback: it has to be a link.
>
>--
>Cheers,
>
>Craig Saila
>------------------------------------------
>craig at saila.com : http://www.saila.com/
>------------------------------------------
>--
>For unsubscribe and other options, including
>the Tip Harvester and archive of thelist go to:
>http://lists.evolt.org Workers of the Web, evolt !
--
Sincerely,
Kid Stevens
"I need nothing more than a good woman, a good Harley(optional),
good music and good children for the good of my soul."
More information about the thelist
mailing list