Jump to content

Change order of blocks with spacers

Recommended Posts

Posted

Site URL: http://www.jessicamiller.work

How can I reorder the testimonial section on the homepage for mobile so that it's image/text/image/text? I have tried the code below, but I don't think it's working because I have spacers on either side of the testimonial.  The 2nd testimonial is what I want to switch on mobile, but the column layout is space/text/image/space. Is there a way to reorder the columns so that it's space/image/text/space? Thanks

//Reverse block order on mobile
[data-section-id] {
 .content-wrapper {
   padding-top: 0!important;
 }
 @media screen and (max-width: 767px) {
  .sqs-row {
    display: flex;
    flex-direction: column-reverse;
  }
 }
}

Jessica Miller | Squarespace Website Designer
https://www.jessicamiller.work
jessica@jessicamiller.work

Search the blog and get Squarespace tips to your inbox
https://www.jessicamiller.work/blog

Want to pick my brain or get help? Book a free 15 minute call.

If my post solved your problem, please mark it as the solution - thanks!

  • Replies 7
  • Views 523
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...
Posted

@tuanphan  I am trying to replicate this on another site. I am using the same code, but switching out the page section and it's not working for some reason.  Site is globalmissionsproject.com

This is what I'm using -

@media screen and (max-width:767px) {
div#page-section-609429372cf1533c90ccb9bb>.row:nth-child(3) {
    display: flex;
    flex-direction: column-reverse;
}}

Jessica Miller | Squarespace Website Designer
https://www.jessicamiller.work
jessica@jessicamiller.work

Search the blog and get Squarespace tips to your inbox
https://www.jessicamiller.work/blog

Want to pick my brain or get help? Book a free 15 minute call.

If my post solved your problem, please mark it as the solution - thanks!

Posted
On 5/10/2022 at 10:43 PM, webdesign1234 said:

@tuanphan  I am trying to replicate this on another site. I am using the same code, but switching out the page section and it's not working for some reason.  Site is globalmissionsproject.com

This is what I'm using -

@media screen and (max-width:767px) {
div#page-section-609429372cf1533c90ccb9bb>.row:nth-child(3) {
    display: flex;
    flex-direction: column-reverse;
}}

Which section are you referring to? Can you take a screenshot? We can help easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

  • 4 months later...
Posted

@tuanphan Sorry for the late reply. Here is a screenshot...  I would like the 2nd image to be above the text. (so that it's image/text/image/text)

Website: globalmissionsproject.com

 

 

2022-09-19_11-04-19.png

Jessica Miller | Squarespace Website Designer
https://www.jessicamiller.work
jessica@jessicamiller.work

Search the blog and get Squarespace tips to your inbox
https://www.jessicamiller.work/blog

Want to pick my brain or get help? Book a free 15 minute call.

If my post solved your problem, please mark it as the solution - thanks!

Posted
18 hours ago, webdesign1234 said:

@tuanphan Sorry for the late reply. Here is a screenshot...  I would like the 2nd image to be above the text. (so that it's image/text/image/text)

Website: globalmissionsproject.com

 

 

2022-09-19_11-04-19.png

Add to Design > Custom CSS

/* Order of text image */
@media screen and (max-width:767px) {
div#block-yui_3_17_2_1_1652193047891_70064+.row {
    display: flex;
    flex-direction: column-reverse;
}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.