Title: Container padding issue
Last modified: November 11, 2025

---

# Container padding issue

 *  [beachmat](https://wordpress.org/support/users/beachmat/)
 * (@beachmat)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/container-padding-issue/)
 * I’ve noticed an issue with the 2% lateral padding applied to content containers
   on viewports up to 1024px, which is that the padding is still needed up to viewports
   of about 1230px. Between those 2 screen widths, the content butts right up the
   edge of the viewport, which doesn’t look good.
 * I can add a css rule to deal with it, but is there an existing selector I can
   use? The containers concerned don’t seem to have classes that differentiate them
   from their parent containers.
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcontainer-padding-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [beachmat](https://wordpress.org/support/users/beachmat/)
 * (@beachmat)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/container-padding-issue/#post-18715553)
 * Looks like I could maybe use `.gb-container > .gb-container`. Not sure if that’s
   always predictable though.
    -  This reply was modified 6 months, 3 weeks ago by [beachmat](https://wordpress.org/support/users/beachmat/).
    -  This reply was modified 6 months, 3 weeks ago by [beachmat](https://wordpress.org/support/users/beachmat/).
 *  [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/container-padding-issue/#post-18715600)
 * Hi there,
 * I’m not sure what you mean, I do not see padding issue on the page you linked.
   can you point me to the section in question?
 *  Thread Starter [beachmat](https://wordpress.org/support/users/beachmat/)
 * (@beachmat)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/container-padding-issue/#post-18715622)
 * Sorry, I had already applied a css fix. Try looking again, as I say, at a viewport
   between 1024 and about 1230px.
 *  [ying](https://wordpress.org/support/users/yingscarlett/)
 * (@yingscarlett)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/container-padding-issue/#post-18715638)
 * The common practice is to add paddings on all screen sizes, and adjust them for
   tablet and mobile.
 * Please try this.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Container padding issue’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/generatepress/3.6.1/screenshot.
   png)
 * GeneratePress
 * [Support Threads](https://wordpress.org/support/theme/generatepress/)
 * [Active Topics](https://wordpress.org/support/theme/generatepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/generatepress/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/generatepress/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 4 replies
 * 2 participants
 * Last reply from: [ying](https://wordpress.org/support/users/yingscarlett/)
 * Last activity: [6 months, 3 weeks ago](https://wordpress.org/support/topic/container-padding-issue/#post-18715638)
 * Status: not resolved