Jump to content

change div order in mobile

Recommended Posts

Site URL: https://www.jabfurniturerehab.com/

pwd is jules

Hi, I have on my home page, 4 sections. The first three are the same type of blocks except the alternate in column ordering.

So section 1 is like:   imageBlock  |  text

section 2 is like :       text  |  imageBlock

section 3 is like:        imageBlock  |  text

When I view it on mobile, section 2 looks funny with the image block under the text.

Can someone tell me if there is a way to force the image in section2 to be first and then the text? 

This is screenshot of desktop:
image.thumb.png.ff233362848a10a531a301cb296f85f3.png

and this is screenshot of mobile:
image.thumb.png.892e1c06559ce9814274e58268754dad.png



thanks in advance.

Link to comment
  • Replies 3
  • Views 702
  • Created
  • Last Reply
51 minutes ago, Jules68 said:

Site URL: https://www.jabfurniturerehab.com/

pwd is jules

Hi, I have on my home page, 4 sections. The first three are the same type of blocks except the alternate in column ordering.

So section 1 is like:   imageBlock  |  text

section 2 is like :       text  |  imageBlock

section 3 is like:        imageBlock  |  text

When I view it on mobile, section 2 looks funny with the image block under the text.

Can someone tell me if there is a way to force the image in section2 to be first and then the text? 

This is screenshot of desktop:
image.thumb.png.ff233362848a10a531a301cb296f85f3.png

and this is screenshot of mobile:
image.thumb.png.892e1c06559ce9814274e58268754dad.png



thanks in advance.

Add this to Design->Custom CSS
 

@media only screen and (max-width: 768px) {
  #page-section-600c23504321966fc68baf1a >  .row {
    flex-wrap: wrap;
    display: flex;
  }
   #page-section-600c23504321966fc68baf1a > .row .sqs-col-6:first-child {
    order: 3;
  }
   #page-section-600c23504321966fc68baf1a > .row .sqs-col-6:last-child {
      order: 1;
     width: 100% !important;
  }
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

image.png.a6f72cb5f05e425808d4129face4a405.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.