By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,866 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,866 IT Pros & Developers. It's quick & easy.

onmouseover change layer backround

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2 Apr 2004 05:38:21 -0800, carramba <ca******@bootre.com> wrote:
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.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.