• 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

align widgets side by side – mobile

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 › align widgets side by side – mobile

This topic is: not resolved

Tagged: widget horizontal

  • This topic has 3 replies, 2 voices, and was last updated 8 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • September 3, 2015 at 10:36 am #164467
    tussle
    Member

    Hi
    On Genesis Sample theme.

    In the right Primary sidebar I have 2 widgets: eNew Extended and Calendar.

    When going mobile they appear one on top of the other at large screen size:
    X
    Y
    (I know at small screen size they must be like one over the other.)

    How could I get them to align side by side on a larger screen size:
    X Y

    I tried width 50% but that just makes them 50% of their row.
    Tried Display: block - no effect.

    Any idea or pointers?

    Thanks

    September 6, 2015 at 1:28 pm #164776
    Tom
    Participant

    Heya,

    This CSS should be placed in the child theme stylesheet, either woven in-place with the other media queries or at the very bottom of the file. Adjust the breakpoints as you wish.

    @media only screen and (max-width: 960px) {
    
    	.sidebar-primary .widget {
    		clear: left;
    		display: inline-block;
    		float: left;
    		width: 48%;
    	}
    	
    	.sidebar-primary .widget:nth-child(2n) {
    		clear: right;
    		float: right;
    	}
    
    }
    
    @media only screen and (max-width: 640px) {
    	
    		.sidebar-primary .widget {
    			width: 100%;
    	}
    
    }

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

    September 7, 2015 at 7:07 am #164828
    tussle
    Member

    Tom, thanks very much! Worked perfectly and looks great.

    (last month referred a theme developer and a SP poster to genesisthemes.ca - really good resource. Thx)

    September 7, 2015 at 11:36 am #164843
    Tom
    Participant

    Thanks @tussle! Glad that worked for your site.


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

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