Jump to content

CSS Multiple Hover


ironside82

Recommended Posts

Hi there,

 

I need to get this working.

 

I have a DIV which changes colour when I hover over it, Simple.

 

However when you mouse over this DIV I need another DIV with a separate style to change also.

 

Is it possible to somehow nest another style within the hover brackets so that the other DIV also changes.

 

I hope that explains it:

 

This is DIV 1 hover:

 


#sidemenu_item:hover, {
background-color:#F1F1F1;
color:#3399CC;

}

 

And

 

This is DIV 2 -

 


#sidemenu_item_home { position:relative; float:left; width:43px; height:45px; background-image:url(images/BUTTON_home_mono.png); }

 

needs to change to:

 


#sidemenu_item_home { position:relative; float:left; width:43px; height:45px; background-image:url(images/BUTTON_home_mono); }

 

When you mouse over DIV 1

 

 

 

Thanks in advance

 

James

Link to comment
https://forums.phpfreaks.com/topic/212359-css-multiple-hover/
Share on other sites

Archived

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

×
×
  • Create New...

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.