Viewing 9 replies - 1 through 9 (of 9 total)
  • 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.

    Thread Starter skallerup

    (@skallerup)

    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.

    Thread Starter skallerup

    (@skallerup)

    How can I add a background to a link, when they dont have a id or class?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You just want to add background to 1 link?

    Thread Starter skallerup

    (@skallerup)

    all the menu icons I have now, I need them to able to click on.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    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?

    Thread Starter skallerup

    (@skallerup)

    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 ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Nav menu – make background click able?’ is closed to new replies.