• 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

Custom widgets in mobile view (Magazine)

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 › Custom widgets in mobile view (Magazine)

This topic is: resolved

Tagged: custom css, magazine

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 2 months ago by propaganda.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 27, 2015 at 9:46 am #166763
    propaganda
    Member

    I have 3 custom widgets in a wrapper at the top of my page which are padded to space them out so they are not bunched together

    .home-top-left {
    	width: 370px;
    	float: left;
    	padding-right: 10px;
       	position: relative;
    }
    
    .home-top-middle {
    	width: 370px;
    	float: left;
    	padding-left: 5px;
    	padding-right: 5px;
        	position: relative;
    }
    
    .home-top-right {
    	width: 370px;
    	float: right;
    	padding-left: 10px;
        	position: relative;
    }

    It looks fine on regular display, on mobile through the padding is pushing them outside of the screen forcing a horizontal scroll. I tried using a percentage width rather than a pixel width but then on mobile they don't stack and really scrunch up making them difficult to read and navigate. Any suggestions would be appreciated, thanks.

    September 27, 2015 at 10:33 am #166770
    Tom
    Participant

    Please provide a link to your site so we can see what you see.


    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    September 27, 2015 at 1:09 pm #166793
    propaganda
    Member

    Domain is http://www.offgridtrailers.ca

    Ignore the content it's under development

    September 27, 2015 at 5:08 pm #166804
    Tom
    Participant

    How about :

    .home-top-left,
    .home-top-middle,
    .home-top-right {
    	float: left;
    	padding: 1.75%;
    	width: 33%;
    }
    
    @media only screen and (max-width: 768px) {
    	
    	.home-top-left,
    	.home-top-middle,
    	.home-top-right,
    	.home-top-left img,
    	.home-top-middle img,
    	.home-top-right img {
    		width: 100%;	
    
    	}

    Choose your next site design from over 350 Genesis themes.
    [ Follow me: Twitter ] [ Follow Themes: Twitter ] [ My Favourite Webhost ]

    September 28, 2015 at 2:43 pm #166881
    propaganda
    Member

    Works like a charm thanks Tom, I am new to the ins and outs of mobile css but am beginning to understand it now.

  • 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

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