Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

CSS Block hover state for menu item

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

My client wants a block of colour to show round each menu item on hover. I've looked around the web for instructions, but it's not working for me.
Responsive template, J2.3.2
www.leadbetters.co.uk/newsite
Can anybody point me in the right direction?
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Try

#navwrap ul.nav > li > a:hover,
#navwrap ul.nav > li .separator:hover
{background:red;}

using your colour value

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
As usual add to the custom.css file

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks again Paul. My CSS skills seem to be getting even worse.
And if I wanted it to be the same colour when it's active?
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
CSS is all about learning and keeping working at it

You have a custom styling setting the background to none for active

#navwrap ul.nav > li.active > a, #navwrap ul.nav > li.active .separator { background: red; }

change it so you have the active colour added

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Found it. I'll have to do some tweaking.
Thanks again for your help Paul.
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
No problem

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers