Jump to content

Archived

This topic is now archived and is closed to further replies.

MoFish

Roll Over Background Colour Change

Recommended Posts

hello. This may seem a total simple question but I have a table/div, and am wanting it to change background colour when the mouse hovers over it. How exactly do I do this.

<div class="changeme"> CHANGE ME <div>

changeme a:link{
color: #000000;
}

something like this?

Share this post


Link to post
Share on other sites
If you want to change the background color of the div then use the :hover persuado-class. like so:
[code]changeme:hover {
color: #000000;
}[/code]
[b]NOTE:[/b] This will not work in IE(6), How it will if you use javascript.

Share this post


Link to post
Share on other sites
to change the background youll need to do this:
[code]
changeme:hover {
background: #000000;
}[/code]

some people use background-color: i just use background:
you can also do this for an image background
[code]
changeme:hover {
background: #000000 url('images/bg.jpg');
}[/code]

color: just changes text color

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.