• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add white space padding below sticky header?

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add white space padding below sticky header?

This topic is: resolved

Tagged: Eleven40, Margin, padding, sticky header, white space

  • This topic has 2 replies, 2 voices, and was last updated 9 years, 10 months ago by MM.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 31, 2013 at 11:09 am #43389
    MM
    Member

    Hi,

    On mikemetcalfe.co  I'm trying to add white space padding below the sticky header, so when a user scrolls up, the scrolling up content doesn't actually touch the Menu bar. Have experimented with CSS but can see how / where to add 20/30 px of space to prevent that?

    Ideas?

    Thanks!

    May 31, 2013 at 12:24 pm #43398
    Aaron Hartland
    Member

    I think this might give you the look you're seeking....

    For the #header div, change the background color from transparent to white (#fff):
    `/** added **/
    #header {
    background: url(images/bg.png) repeat-x scroll 0 0 #fff;
    margin: 0 auto;
    z-index: 100;
    position: fixed;
    top: 0;
    width: 100%;
    }`

    And then add 5px more margin to the top of the #inner div:
    `#inner {
    clear: both;
    margin-top: 90px;
    }`


    Aaron Hartland | http://www.aaronhartland.com
    Twitter  |  Facebook  |  LinkedIn  |  Google+

    May 31, 2013 at 12:54 pm #43399
    MM
    Member

    Hi Aaron, perfecto.

    Any idea why videos showing above menu? i.e. http://mikemetcalfe.co/angel-investment-startup-legals-popular-funding-clauses/

    Thanks again!

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble