Support » Fixing WordPress » Nav menu – make background click able?
3 years, 11 months ago
I’m having a menu with some background images – how can I change the code, so I can make the images(background) click able?
My site: http://www.martinskallerup.dk/skovbo
Using CSS, make the text links block level elements using display:inline-block; and adjust their height & width. Then turn your images into backgrounds for these links.
I’ve now changed the display til inline-block, but the images are already backgrounds?
So what do I need to adjust of height and width?
And thank you for the fast reply!
The images are currently the background images on the <li> tags – not on the links themselves.
How can I add a background to a link, when they dont have a id or class?
You just want to add background to 1 link?
all the menu icons I have now, I need them to able to click on.
Instead of adding padding-top to the <li>s of the menu, why not just add padding-top to the <a>s of the menu?
Uh? Do you know how to use CSS selectors like #menu-item-34 > a?
#menu-item-34 > a
I removed the padding-top at
<li> and added padding-top to <a> instead.
Looks like its working, so thank you both very much – very appreciated 🙂