• Resolved ZoePDX

    (@zoepdx)


    Hi,
    I’m trying to reduce the space between the top of the window and the nav bar in the theme Twenty Twelve. I’ve tried modifying the body. site margin but I must not have it correct…I would love your help. My site is https://www.lacostita.com.

    Thanks,
    Zoe

Viewing 8 replies - 1 through 8 (of 8 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Where did you make your modifications?

    +1 for using a custom css plugin;
    just remember before you make edits to the templates to create a child theme; https://codex.www.ads-software.com/Child_Themes

    there is also a top margin on the .main-navigation style; reduce that:

    .main-navigation { margin-top: 0; }

    and further padding in .site-header

    using a browser inspection tool helps to find out where these things get formatted.

    Thread Starter ZoePDX

    (@zoepdx)

    I made the modifications through an add css plugin. I just also added
    .main-navigation { margin-top: 0; } as well and still nothing…

    Thanks for your help.

    Try also,

    .site-header {
        padding: 0;
    }

    Thread Starter ZoePDX

    (@zoepdx)

    that helped a little. thanks!

    Thread Starter ZoePDX

    (@zoepdx)

    In the theme the padding is also listed like this:

    padding: 24px 0;
    padding: 1.714285714rem 0;

    for almost all elements. What are the two different paddings referring to?

    Thanks,
    Zoe

    rem (unit of measure) isn’t read by all browsers, so the px is there as a fallback for those browsers that don’t.

    The notes at the top of the theme’s style.css file explain more about rem if you’re interested.

    Thread Starter ZoePDX

    (@zoepdx)

    I’ve got it all worked out thanks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Modify body top margin in Twenty Twelve’ is closed to new replies.