• Hi,

    I would like to have a space just behind my main menu because sub menu is to near the main menu and I can arrive to change this :(( do you have a solution ? I have tried in CSS but I can not find the solution… thanks for your help.

    Best regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator mizantium

    (@janmtm)

    Hi @debby78018

    You can try something like this:

    ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu {
    margin-top: 15px;
    }

    It will target the submenu only, and set its margin to 15px lower, using pixels. If you want more space, you can increase the number from 15 to a higher number, and vice versa, for a smaller space.

    Hope that helps!

    Thread Starter Sandra Boulou

    (@debby78018)

    Hi, thanks a lot but if I insert this code I can click on the sub menu :((

    Moderator mizantium

    (@janmtm)

    Hi @debby78018

    Okay, got it. Did you insert the code while the previous CSS code that you’d tried was still there ?

    Can you try adding only that code ?

    And if this is what you tried, are you able to link to a screenshot that shows what you’re seeing ?

    You could use something like snipboard.io to share a screenshot.

    Thread Starter Sandra Boulou

    (@debby78018)

    Moderator mizantium

    (@janmtm)

    Hi @debby78018 !

    My fault. I see what you mean!

    You can try padding instead, but the background area will not be affected by this, only the text.

    So that CSS changed will be, instead:

    ul.wp-block-navigation__submenu-container.wp-block-navigation-submenu {
    padding-top: 15px;
    }

    Hope that helps!

    Thread Starter Sandra Boulou

    (@debby78018)

    Hi,
    Thanks but it is not really what I want just add a space behind the sub menu ? is it possible ? not a padding top

    Best regards

    Moderator mizantium

    (@janmtm)

    Hi @debby78018

    Is there an example from another site or a screenshot showing where you’ve seen this done before, showing exactly what you mean, when you saw ‘a space behind the sub menu’ ?

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.