HighDots Forums  

onmouseover change layer backround

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


Discuss onmouseover change layer backround in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AT
 
Posts: n/a

Default onmouseover change layer backround - 04-02-2004 , 08:38 AM






Hi!

I was wondering if here enyway to change layer backround with css, I
don't want to use javascript. The code have to by placed in css file.

Reply With Quote
  #2  
Old   
Neal
 
Posts: n/a

Default Re: onmouseover change layer backround - 04-02-2004 , 08:50 AM






On 2 Apr 2004 05:38:21 -0800, carramba <carramba (AT) bootre (DOT) com> wrote:

Quote:
Hi!

I was wondering if here enyway to change layer backround with css, I
don't want to use javascript. The code have to by placed in css file.

If it's an anchor, it's easy, use the :hover pseudo.

a {
background-color: #ff0000;
}

a:hover {
background-color: #cc0000;
}

While CSS allows :hover to be applied to other selectors, browser support
for non-anchors is poor. Some browsers will not render the hover style.

See http://www.w3.org/TR/CSS2/selector.html#x33 for more info.


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 - 2009, Jelsoft Enterprises Ltd.