• 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

Header Script Driving Me Crazy

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 › Header Script Driving Me Crazy

This topic is: resolved
  • This topic has 1 reply, 1 voice, and was last updated 12 years ago by malycom.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • February 20, 2014 at 11:24 am #91429
    malycom
    Member

    Looking for a smart, intelligent amazing person to help me out with an issue that is driving me nuts.

    For reference, the site is http://www.maldavidson.com/lutea

    I have some CSS for some code that is going into the Genesis Header Script box in the Genesis Theme settings.

    This is what I have in the Genesis Header Script box

    <div class="lutea-logo">

    <div class="lutea-contact-details" style="display:inline">

    <div class="email">
    [email protected]
    <div class="phone">
    +44 (0)1234 123456
    </div>
    </div>
    </div>
    </div>

    And this is the CSS

    .lutea-logo {
    background-color: #fff;
    /* max-width: 300px; Leave this out */
    /*max-width: 1140px;*/
    overflow: hidden;
    padding: 10px 32px;
    padding: 1rem 3.2rem; /* adjust these values as needed */
    margin-bottom: 0;
    }

    .lutea-contact-details {
    /*margin-right: 32px; You don't need this with the padding on the parent */
    float:right;
    padding-top: 25px; /* Adust this to visually balance with the logo on the left if you like */
    width: 350px;

    }

    .lutea-contact-details .email {
    background-image: url("http://maldavidson.com/lutea/wp-content/uploads/2014/02/mail.png");
    padding-left: 25px;
    float:left;
    background-repeat:no-repeat;
    }

    .lutea-contact-details .phone {
    background-image: url("http://maldavidson.com/lutea/wp-content/uploads/2014/02/phone.png");
    padding-left: 25px;
    background-repeat:no-repeat;
    float:right;
    margin-left: 20px;
    margin-left: 2em;
    }
    /* add this */
    .lutea-logo img {
    float: left;
    }

    The problem is that I need this to be at 1140px and centred when a browser is is full screen and then resize if someone has their browser not on full screen or if they are on a mobile or tablet.

    It actually looks fine on mobiles but on full screen (depending on screen settings), the div is wider than the rest of the site and on very wide screens it looks awful.

    Ideally I want it to be centered on full screen at 1140.

    Can somebody help?

    Many thanks

    February 20, 2014 at 3:32 pm #91492
    malycom
    Member

    If I set to max width 1140 and align center, although it aligns center, it goes too narrow. Still need help if anyone thinks they might be able to.

    Thanks

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2026 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