Specify order of columns when...

User 476372 Photo


Registered User
196 posts

Hi,

Is there a way to specify the order of columns when you are creating breakpoints for mobile stuff? Let me see if I can explain. I have this site I am working on: http://spoonfrogclients.com/nfr2/ There are 3 rows below the big feature image that are white, then gray, then white again. The white rows have the text and then pic and the gray has pic then text. When it responds smaller and everything is stacked, I want the second row (gray one) to display the image last, not first, like the white ones do. Is this possible?

Thanks! :)
SPOON FROG graphics - Affordable Web Site Design & Ecommerce Design
www.spoonfroggraphics.com
User 2484360 Photo


Registered User
3,293 posts

You sure can!

I created a simple mockup using your image and the same type of layout you have. Please see the attached file.

Basically what I did was the image (on desktop) is actually the second column in the row and the text is the first column. Using the Push/Pull feature I "Pulled" the second column (the one with the image) to make it appear as the first column. Then I "Pushed" the first column (the text and button) so it would appear to be the second column in the row.

Then at the breakpoint, I removed the push and pull from both columns causing them to revert to their original order. If you want to learn more about this, we have two articles found here http://www.coffeecup.com/help/articles/ … the-stack/ and here http://www.coffeecup.com/help/articles/ … out-maker/

Hope that helps! :)
Attachments:
User 476372 Photo


Registered User
196 posts

Thank you so much! I will take a look and see if I can figure out how you did it! :)
SPOON FROG graphics - Affordable Web Site Design & Ecommerce Design
www.spoonfroggraphics.com
User 476372 Photo


Registered User
196 posts

Hi,

So is it best for me to mock up the 'desktop' size flipped and then undo it when I get to the mobile size?
SPOON FROG graphics - Affordable Web Site Design & Ecommerce Design
www.spoonfroggraphics.com
User 2484360 Photo


Registered User
3,293 posts

spoonfrog wrote:
Hi,

So is it best for me to mock up the 'desktop' size flipped and then undo it when I get to the mobile size?


Yes, this will allow you to change it back to the normal flow once you reach the desired breakpoint.
User 476372 Photo


Registered User
196 posts

Thank You!
SPOON FROG graphics - Affordable Web Site Design & Ecommerce Design
www.spoonfroggraphics.com
User 271657 Photo


Ambassador
3,816 posts

That looks like a job for Flexbox :D
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams)
https://www.callendales.com
User 476372 Photo


Registered User
196 posts

Hi,

Can you please give me a brief summary as to what flexbox does?
SPOON FROG graphics - Affordable Web Site Design & Ecommerce Design
www.spoonfroggraphics.com
User 122279 Photo


Senior Advisor
14,622 posts
Online Now

The best summary, although not 'brief', can be found here:
http://www.w3schools.com/css/css3_flexbox.asp
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 232214 Photo


COO
827 posts

spoonfrog wrote:

Can you please give me a brief summary as to what flexbox does?

There's a guide for working with Flexbox included in the app itself, you can access it through the theme browser. There's also an online version of the Design with Flexbox guide.
The future of web layout has arrived and it's called CSS Grid. CoffeeCup helps you to get ready with a free guide, the Grid Builder app plus cool demos & themes.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.