tucecoop Posted April 1 Share Posted April 1 Hi, I am trying to get the highlight background effect on my main navigation when hovering over, to look like this this. I tried some of the code from a previous thread but can't seem to get it working, can you help? https://proctimise.squarespace.com/ pw: lucy Link to comment
tuanphan Posted April 2 Share Posted April 2 People item only or all items? If people, use this code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tucecoop Posted April 5 Author Share Posted April 5 Thanks @tuanphan I would like to highlight all items on hover Link to comment
tucecoop Posted April 5 Author Share Posted April 5 Also, how do I change the size of the background box (add padding etc) ? Link to comment
tuanphan Posted April 6 Share Posted April 6 17 hours ago, tucecoop said: Also, how do I change the size of the background box (add padding etc) ? You can add this code under your current hover code div.header-nav-item>a { padding-left: 10px !important; padding-right: 10px !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tucecoop Posted April 7 Author Share Posted April 7 Thanks so much! Is there a way to change the color of the text on hover back to black, when it's on the active page? At the moment the text on the active page link is green on hover so you can't see it over the background Link to comment
tuanphan Posted April 8 Share Posted April 8 10 hours ago, tucecoop said: Thanks so much! Is there a way to change the color of the text on hover back to black, when it's on the active page? At the moment the text on the active page link is green on hover so you can't see it over the background You can use this CSS code div.header-nav-item--active>a:hover { color: #000 !important; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment