Vertical menu color change on mouse move

Vertical menu color change on mouse move

  

Hi

I'm bit struggling with CSS. All i want to do is to highlight the vertical menu on mouse hover and change the back ground color on a click.

I tried using extended properties, however was not successful.

e.g

onmousemove=

"background-color: red"

Any suggestion on this please..


Sunil

Solution

Hi Sunil,

 Use the hover selector for that, look beneath for its structure!


menu:hover { 

    background-color: red;

}


, substitute the menu by whatever you wish that should be hovered!

Solution

Guilherme Dantas wrote:

Hi Sunil,

 Use the hover selector for that, look beneath for its structure!


menu:hover { 

    background-color: red;

}


, substitute the menu by whatever you wish that should be hovered!

Hi Guilherme


Thanks for the solution!

It worked very well!


Regards


Sunil Babar