• 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

margins

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 › General Discussion › margins

This topic is: resolved
  • This topic has 4 replies, 2 voices, and was last updated 6 years, 5 months ago by EW.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 10, 2018 at 2:11 pm #224945
    EW
    Participant

    I want just one div on my homepage to be full width - no margin at all on either side but when I can't seem to change the genesis layout with out it effecting the margins of every page.
    what can i do?
    thanks

    http://littlepeople.estiwolodarsky.com
    December 10, 2018 at 4:45 pm #224947
    Victor Font
    Moderator

    Which element do you want to be full width?

    You can add the following CSS to it's ID or create a class for the element. Either way, the CSS is:

    margin-left: calc( -100vw / 2 + 100% / 2 );
    margin-right: calc( -100vw / 2 + 100% / 2 );
    max-width: 100vw;

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 11, 2018 at 2:29 am #224953
    EW
    Participant

    I want to add it just to the class- "view-by-designer", this is a h3 on the home page, but there is no change happening?

    December 11, 2018 at 4:22 am #224957
    Victor Font
    Moderator

    The code I gave you is working fine. You have to change the overflow from hidden to visible on the article object.

    At line 1919 in style.css, the code should be:

    .blog .entry, .page .entry, .search .entry, .sidebar .entry, .archive .entry, .single .entry {
        margin-bottom: 3rem;
        padding-bottom: 3rem;
        overflow: visible;
    }

    And the view-by-designer class is:

    .view-by-designer {
        text-align: center;
        color: #fff;
        font-size: 45px;
        font-family: 'rajdhani';
        background-color: #510600;
        margin-left: calc( -100vw / 2 + 100% / 2 );
        margin-right: calc( -100vw / 2 + 100% / 2 );
    }

    Regards,

    Victor
    https://victorfont.com/
    Call us toll free: 844-VIC-FONT (842-3668)
    Have you requested your free website audit yet?

    December 11, 2018 at 4:31 am #224959
    EW
    Participant

    thank you, that worked!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘margins’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

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