Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1306377

    Dear Kriesi support team,

    This is my first request/post, so hello and hope you can help.

    I want to create spacing between my header items, and I figured to do this by adding the following to my ‘Additional CSS’:

    #avia-menu li {
    	margin : 0 2.5%;
    }
    

    While this is indeed separating my list items, it is wrapping the overflow content. How can I prevent this and have all items display on the same line?

    #1306531

    Hey fabian_stricker,
    Thank you for your patience and for the link to your site, in order to use a margin with a percentage for the main menu li, you will need to also increase the .main_menu & .av-main-nav-wrap containers like this:
    (*desktop example)

    #avia-menu li {
    	margin : 0 2.5%;
    }
    .main_menu {
        width: 80%;	
    }
    .av-main-nav-wrap {
    	width: 95%;
    }

    the problem with this approach is the wider the containers are the more margin is added because of the percentage.
    I recommend simply using a fixed px or em width instead like this:

    #avia-menu li {
    	margin : 0 18px;
    }
    #avia-menu li {
    	margin : 0 .9em;
    }

    this will increase the parent .main_menu & .av-main-nav-wrap containers to fit.

    Best regards,
    Mike

    #1307020

    Dear Mike,

    Many thanks for your instructions, and help!

    BR,
    Fabian

    #1307027

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Margin for header menu list items without wraping’ is closed to new replies.