WordPress.org

Forums

Icy
Changing navigation menu size (4 posts)

  1. TerrieO
    Member
    Posted 1 year ago #

    I am trying to change the height of my navigation menu. I found on firebug that what I need to do is change the line-height:inherit to line-height:0 to make this happen. This is what it looks like on firebug. Can someone tell me now how I do this?

    'border:0;
    font-family:inherit;
    font-size:inherit;
    font-style:inherit;
    font-variant:inherit;
    font-weight:inherit;
    line-height:0;
    margin:0;
    padding:0;
    vertical-align:baseline;
    }'

  2. Balint Toth
    Member
    Posted 1 year ago #

    Hello!

    I am afraid I don't understand fully your issue. You need a way to save the modifications that you did in Firebug to your theme?

    It would be really helpful if you could share a link to your website, so I could assist you and double-check the effects of the modifications.

    Cheers,
    Balint

  3. Kristina
    Member
    Posted 1 year ago #

    Hello!

    Open you wordpress dashboard.
    Klik on the Appearance/Editoer.
    In the rignt side choice your theme.
    Scroll down in the bottom page and click on the last document with extenzion *.css
    Paste your css coude in the editor ande save the page.

    Cheers :)
    Kristina

  4. lorro
    Member
    Posted 1 year ago #

    Hi, The height of the navigation bar is governed by both the font size and the padding above and below the text.

    To adjust the padding, try this in your custom css:
    .nav a {padding: 12px 15px}
    In this case, the 12px is the current padding both above and below the text. Increase or decrease this value to adjust the bar height. In this case, the 15px is the left and right padding to the text.

    If you would like to change the font size, try this:
    .nav a (font-size:100%}
    100% is the current value, increase for a bigger font, decrease for smaller.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic