Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #283337

    http://www.crestedbuttecomputers.com/dev/cbfpd

    Is there a way to make the Menu items word wrap so that Fire Division are on two separate lines. I added a <br> tag and it is causing weird spacing issues that I can’t seem to find the CSS for.

    • This topic was modified 10 years, 4 months ago by ewingmh.
    #283385

    Hey ewingmh!

    Thank you for using the theme!

    You can wrapped the second word on the menu title around a span tag. Something like this:

    Fire<span class="menu-break">Division</span>
    

    Add this on Quick CSS or custom.css:

    span.menu-break {
    display: block;
    line-height: 0;
    bottom: 35px;
    position: relative;
    }

    Best regards,
    Ismael

    #283423

    Great – any way to center the two rows so that Fire and Division are aligned center both vertically and horizontally?
    In responsive mode it does all kinds of weird stuff – Division ends up on top of Fire.

    • This reply was modified 10 years, 4 months ago by ewingmh.
    #283608

    Hi!

    You can try the following:
    Add this on Quick CSS or custom.css:

    
    .menu-item-top-level{
    	text-align: center;
    }
    

    This will center all top menu items.

    If you only want to center a specific item, you have to find out the id of this menu and can use the following code (2971 must be replaced with the ID of your menu ID) :

    
    #menu-item-2971 {
    	text-align: center;
    }
    

    Regards,
    Günter

    #283686

    You guys are great. Any chance to center the menu items vertically in the header? The menu does not work in responsive mode – Division ends up on top of Fire. –

    UPDATE – I added this and it seems to work for responsive mode:
    @media only screen and (min-width: 320px) and (max-width: 480px) {
    span.menu-break {
    position: inherit !important;
    }
    }
    @media only screen
    and (min-device-width : 768px)
    and (max-device-width : 1024px) {
    span.menu-break {
    position: inherit !important;
    }
    }

    Still looking to center the menu vertically within the header.

    • This reply was modified 10 years, 4 months ago by ewingmh.
    #283897

    Hey!

    Thank you for the update.

    Use this to center the menu vertically:

    .av-main-nav-wrap {
    margin-top: -15px;
    }

    Cheers!
    Ismael

    #284358

    that also moves the white bar indicating the active link.

    #284390

    Hi!

    Alright. Sorry about that. You can use this instead:

    .avia-menu-fx {
    bottom: -21px;
    }
    
    div.avia-menu.av-main-nav-wrap {
    margin-top: -20px;
    }
    
    .av-main-nav ul {
    margin-top: 20px;
    }

    Best regards,
    Ismael

    #333878

    I am using the suggestions above, and they seem to work except for my wide screen laptop.

    So I am using
    @media only screen{
    position: inherit !important;
    }
    }

    which seems to fix the problem. I’m not great with this kind of code–is this going to cause some other problem by not limiting the device widths?

    Also, my menu is now not tall enough for the second line. Check it out at
    kirkofkildaire.org

    #333894

    Hi!

    You can simply use the code as following to apply it on all screens

    span.menu-break {
    position: inherit !important;
    }

    Regards,
    Yigit

    #333910

    I figured out the menu height from another post using

    .main_menu ul:first-child > li a {
    height: 37px !important;
    line-height: 20px !important;
    }

    But would still appreciate whether using the @media only screen without limiting the device widths will cause a problem.

    #333914

    Hey!

    I checked your website and it does not. Please add following code to Quick CSS to decrease the padding between menu items when screen width is smaller than 1040px

    @media only screen and (max-width: 1040px) {
    .av-main-nav > li > a { padding: 0 12px; }}

    Cheers!
    Yigit

    #333923

    Thanks!

    #333926

    Hey!

    You are welcome, we will keep the thread open for the OP. Feel free to start a new thread if you have any other questions or issues

    Cheers!
    Yigit

    #334117

    Hi, you know why this happens?

    Menu

    #334280

    Hi @ezequielmoura

    It could be a CSS issue. Could you please the link to your site so we could have a look.

    Cheers!
    Arvish

    #334406

    Just realized that the changes I made to support breaks in the main menu probably require some changes to my submenu (not sure that’s the right term, but the sub items that appear when you rollover the main menu items.) The spacing is off. If you look at the items under Worship, which is the only place it appears, you will see what I mean. Worship is the only area that has wrap around sub items, so I think it’s related to that. Any suggestions?

    kirkofkildaire.org

    #334408
    This reply has been marked as private.
    #334409

    I fixed it using the same menu break class–hadn’t thought of it.

Viewing 19 posts - 1 through 19 (of 19 total)
  • The topic ‘Word Wrap in Menu – or Have the menu on two lines’ is closed to new replies.