Css line break – menu

Home Forums Support Css line break – menu

Home Forums Support Css line break – menu

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #202655
    marketingeszkozok

    Hello,

    I’d like this:
    http://prntscr.com/bhezra

    Page:
    http://www.alarmservice.hu/kezdooldal/

    How can I break a new line?

    Csaba

    #202661
    Tom
    Lead Developer
    Lead Developer

    Hmm, not sure it will work, but worth trying.

    Add this CSS:

    .main-navigation .main-nav ul li a, 
    .menu-toggle, .main-navigation .mobile-bar-items a {
        line-height: inherit;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    Adding CSS: https://generatepress.com/knowledgebase/adding-css/

    Then you’ll need to add a line break into your Navigation Label in “Appearance > Menus” like this: <br />

    #202662
    marketingeszkozok

    I copied.
    It’s not working.

    Other ideas?

    #202663
    Tom
    Lead Developer
    Lead Developer

    Did you add the line breaks to your menu items? I’m not seeing them on your site.

    #202664
    marketingeszkozok

    This was missing. 🙂
    Thanks!

    How can I put into the middle?
    It should be the same on both sides.
    http://prntscr.com/bhfbzh

    #202665
    Tom
    Lead Developer
    Lead Developer

    Have you tried setting the Navigation Alignment to Center in “Customize > Layout”?

    #202666
    marketingeszkozok

    How can I “Kapcsolat” menu center to put the menu?
    http://prntscr.com/bhfirs

    #202762
    Tom
    Lead Developer
    Lead Developer

    Hmm, as far as I know there’s really no good way to do that. If you want to do the two line thing you’ll have to apply it to all items.

    You can ask over on http://stackoverflow.com/ to see if anyone else has any ideas.

    #1474478
    Neville

    Hello Tom,
    Some of our menu items are two words. I have added the CSS shown here and with the line break it correctly separates the words. However it puts the first word above the menu line rather than the second word below the menu line where I want it. Have you any suggested mods to the CSS Please?

    Thanks
    Nev.

    #1474540
    David
    Staff
    Customer Support

    Hi there,

    can you raise a new topic where you can share a link to the site in the Private Info box and we can take a look

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