This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Make one column “float” on top of the other when on the mobile?

10 years ago · Last reply by Andrew Misplon 10 years ago

My website has “Rows” with 2 columns. By default, when the window is resized (or on the mobile), the left columns will be on the top of the right columns.

How to switch that order? I want the right column to go on top of the left one.

My website is http://socialagent.staging.wpengine.com/ and I’m specifically talking about section 2 below the fold (“Make Social Introductions & Referrals”) and section 4 (“Track your introductions”).

URL: http://socialagent.staging.wpengine.com/

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

14
  1. Andrew Misplon Staff 10 years, 4 months ago

    Hi Maurice

    Thanks for reaching out.

    This, unfortunately, isn’t possible from within Page Builder at the moment. I’ve marked this thread as a feature request; thanks for your feedback. We run through these threads when looking for ideas for updates.

  2. Maurice Dziubinski 10 years, 4 months ago

    I was thinking more in terms of manipulating the Row with CSS. Isn’t there a way to do it with code?

  3. Andrew Misplon Staff 10 years, 4 months ago

    Sure, let me take a quick look.

  4. Andrew Misplon Staff 10 years, 4 months ago

    Edit the row, click Attributes top right, assign a class of:

    mobile-control

    Add the following to a Custom CSS field or plugin to target:

    @media (max-width: 780px) {
      .mobile-control .panel-grid-cell {
        float: left !important;
        padding-right: 30px !important;
        padding-left: 30px !important;
        width: 50% !important;
      }
    }

    No elegance there. We’re just manually setting values back to what they were before.

  5. Maurice Dziubinski 10 years, 4 months ago

    Is it a Row class or Cell class that I should use? I’m already using Row class for a parallax background plugin. I’ve pasted your code (yep, I did use the SiteOrigin’s Custom CSS) and used the Cell class but it didn’t work (I’m making changes to http://socialagent.wpengine.com/ this time).
    Could I use 2 classes in the Row class if that’s the one I’m looking at?

  6. Andrew Misplon Staff 10 years, 4 months ago

    Try using two row classes, just leave a space after your parallax class and then add our new one

    mobile-control

    If there are issues with that then try adding to the cell class field instead.

  7. Maurice Dziubinski 10 years, 4 months ago

    Thank you, it works! But not exactly how intended though.

    Now none of the columns go up or down when resizing – they both stay in the same row. And the smaller the width (the more I resize), the smaller the image becomes:

    http://screencast.com/t/bpHGNjdI

  8. Andrew Misplon Staff 10 years, 4 months ago

    Sure.

    Now none of the columns go up or down when resizing – they both stay in the same row.

    Perhaps we can explain your request again and I’ll take another look. We’ve reversed the responsive behaviour that takes columns and makes them 100% and non-floated below a certain resolution. My understanding was that this is what you wanted to do.

    And the smaller the width (the more I resize), the smaller the image becomes:

    That’s expected. Almost all themes set their images to have a 100% width, this means that as the container gets smaller so does the image.

  9. Maurice Dziubinski 10 years, 4 months ago

    I just wanted the right column to go on top of the left one below certain resolution. (rather than left one going on top of the right one – the default behavior).

  10. Andrew Misplon Staff 10 years, 4 months ago

    Sorry, I’m not really sure how we’d do that without complicated CSS. The way responsive layouts work matches the actual document flow. The right column drops below the left and if you view the source, the right column comes after the left column, in all resolutions. To put the right above the left we’d need to display the reverse of the document flow.

  11. Maurice Dziubinski 10 years, 4 months ago

    Ok, thank you very much for a clear explanation. Is there a way to toggle on a background (tiled image) for an HTML widget only when on mobile?

  12. Andrew Misplon Staff 10 years, 4 months ago

    Unfortunately, no way at the moment. You’d need to use media queries.

  13. Andrew Misplon Staff 10 years, 4 months ago

    If you send through all the details such as the URL of the background, the page link, the block I must look etc. I can try help.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread