• 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

Do not stack columns on 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 › Do not stack columns on mobile

This topic is: not resolved

Tagged: column classes

  • This topic has 4 replies, 3 voices, and was last updated 5 years, 8 months ago by RichardHK.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • February 10, 2020 at 7:55 am #496612
    andrewglover
    Member

    When using the genesis CSS classes (https://gist.github.com/studiopress/5700003) to generate columns, the default behavior is for these columns to "stack" on top of each other at certain breakpoints on mobile devices. In 90% of cases, I think this is the preferred behavior. However, is there a way to tell a specific columns to "Not Stack" and simply shrink horizontally, so that the columns remain on mobile devices?

    I'm trying to get the "Available Versions" section here (https://prod.jamaicacottageshop.com/shop/cross-gable/) keep the three-column layout even on mobile devices.

    https://prod.jamaicacottageshop.com/shop/cross-gable/
    February 16, 2020 at 7:58 am #496767
    Brad Dalton
    Participant

    Modify the media queries at 960px

    /* Column Classes
    	--------------------------------------------- */
      .five-sixths,
      .four-sixths,
      .one-fourth,
      .one-half,
      .one-sixth,
      .one-third,
      .three-fourths,
      .three-sixths,
      .two-fourths,
      .two-sixths,
      .two-thirds {
        float: left;
        margin-left: 1.7%;
      }
      .one-half,
      .three-sixths,
      .two-fourths {
        width: 48.717948717948715%;
      }
      .one-third,
      .two-sixths {
        width: 31.623931623931625%;
      }
      .four-sixths,
      .two-thirds {
        width: 65.81196581196582%;
      }
      .one-fourth {
        width: 23.076923076923077%;
      }
      .three-fourths {
        width: 74.35897435897436%;
      }
      .one-sixth {
        width: 14.52991452991453%;
      }
      .five-sixths {
        width: 82.90598290598291%;
      }
      .first {
        clear: both;
        margin-left: 0;
      }
    

    Tutorials for StudioPress Themes.

    April 14, 2020 at 12:23 am #497944
    RichardHK
    Member

    @braddalton Many thanks for your help on this, as I had exact same need as Andrew.

    I have six images across page which now looks and behaves good on desktops and tablets, but when getting down to mobile size screens, say 480px, the six images scale down to a very small size, too small to read well.

    How can I split the 6 images into 2 groups of 3 columns for the mobile view?

    Thanks. Any help much appreciated.

    April 14, 2020 at 12:25 am #497945
    Brad Dalton
    Participant

    Try this https://www.w3schools.com/css/css_grid.asp wrapped in a media query.


    Tutorials for StudioPress Themes.

    April 14, 2020 at 12:41 am #497946
    RichardHK
    Member

    Thanks Brad,

    Yes, that will work. I also had a brainwave just after posting my question and tried the following mobile media query and it works Ok too it seems:

    .one-sixth {
    width: 31.623931623931625%;
    }

    I just pasted the '.one-third' value 31.xx into the one-sixth expression.

    I now have 2 ways to do this! Many thanks again, especially for your quick response.

  • 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