• 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

Min width issue:

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 › Min width issue:

This topic is: not resolved

Tagged: design max-width

  • This topic has 4 replies, 2 voices, and was last updated 10 years, 9 months ago by chrismcintosh.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • August 25, 2014 at 2:18 pm #120985
    jgk
    Member

    Hi,

    I'm not sure how to accomplish this on he following website, due to how nested div's are handled.

    On the following page we have divs dividing the page down the middle with different background colors and text colors for design purposes. But throughout the site the max width is set to 1140px. Right now on very large screens the text in those divs are going out further than that.

    I need the background to extend the full width but need the text to extend no further than 1140px. I'm not sure how to do this.

    Please help! Thank you!

    http://stewartmartin.studioissa.com/workshops/
    August 27, 2014 at 12:41 pm #121405
    chrismcintosh
    Member

    As long as I am reading the issue correctly the following might be a good start.

    HTML
    Just inside your <div class="fifty purplebg split"> div

    Add a another div. I did <div class="txt-widget">

    Then do the same for <div class="fifty whitebg split">

    CSS
    .txt-widget {max-width: 570px;}

    Seems like you will have to play around with padding/margins though.

    August 27, 2014 at 12:55 pm #121412
    chrismcintosh
    Member

    Sorry this is little better.

    CSS

    .txt-widget {
    max-width: 450px;
    margin: 0 auto;
    }
    August 28, 2014 at 2:29 pm #121550
    jgk
    Member

    Thank you Chris! That fixed it! Thanks so much.

    I'm having one tiny issue I didn't mention initially, here's a screenshot: https://www.evernote.com/shard/s3/sh/0f94fabb-7299-45df-b4b1-6005b201506b/961c91469093c66ad452187c0349cd4b

    Basically at certain browser widths due to the size of the words one of the boxes is becoming larger than the other. This pushes down the enclosing div and makes a white line.

    I know I can set the height of the boxes with media queries but would there be a simpler solution to avoid this?

    Thanks so much!

    September 1, 2014 at 4:07 pm #122281
    chrismcintosh
    Member

    At first look maybe a max-height declaration on that .txt-widget class. Might be able to take a closer look tomorrow.

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

© 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