• 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

remove padding on small screen

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 › remove padding on small screen

This topic is: resolved

Tagged: padding, responsive

  • This topic has 4 replies, 2 voices, and was last updated 11 years ago by miriam.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 29, 2014 at 7:19 am #135531
    miriam
    Member

    I am using Parallax Pro.

    In home-section-3 I added padding-left:200px and padding-right: 500px. However on small screens it gives just one vertical line of letters. I want to keep padding on traditional screens but remove it from mobile devices so I tried adding .home-section-3 {padding-left: 0; padding-right: 0} to the Media Query section of the style.css file. But it does not work. Any ideas how to go about it? I will appreciate your assistance.

    http://zencity.pl
    December 29, 2014 at 10:04 pm #135629
    rfmeier
    Member

    Miriam,

    Add this to you custom styling;

    @media only screen and (max-width: 1140px) {
    
        .home-section-3 {
            padding-left: 0;
            padding-right: 0;
        }
        
    }

    It will remove your padding with the screen decreases in size.


    Ryan Meier – Twitter

    December 30, 2014 at 9:26 am #135669
    miriam
    Member

    Thank you Ryan. I have tried this and it does not work for some reason. Is there any other way to do so? Or perhaps I am experiencing a bug within a theme...? 🙁

    January 4, 2015 at 11:16 am #136034
    rfmeier
    Member

    Miriam,

    I apologize for the delay in response. I was out of town for the new year. Your custom css is loading after you theme's style.css file. So any changes within your style.css file will be overrode by your custom css changes.

    Using Chrome developer tools, I appended the following css and was able to correct the padding on your home section 3 for screens smaller than 1140px;

    @media only screen and (max-width: 1140px) {
    
        .home-section-3 {
            display: block;
            padding-left: 0;
    		padding-right: 0;
    	}
        
    }

    Make sure your browser cache is cleared when you make these changes as css tends to be cached hard.


    Ryan Meier – Twitter

    January 7, 2015 at 11:18 am #136291
    miriam
    Member

    No worries! Thank you so much! It has worked brilliantly!

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘remove padding on small screen’ 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

© 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