Jump to content

How to reorder Image, Text, and Code Block content on mobile using CSS ?

Recommended Posts

Site URL: https://pte.squarespace.com/

On mobile, I need to reorder the light blue image and place it above the text that says

"Augmented AR

easypod AR

VIEW CASE STUDY ->"

How might I be able to do that on mobile only? (767px)

[Side Note: I had made image cards before with the image and the text, but because we wanted to include an arrow icon, I had to redesign the elements individually to include a code block to hold the arrow icon.]

147427356_Screenshot(29).thumb.png.3e3afb2b1c28fffcb8945e5849421f88.png

 

 

Screenshot (30).png

Link to comment
On 11/12/2021 at 4:31 AM, pbueno24 said:

Site URL: https://pte.squarespace.com/

On mobile, I need to reorder the light blue image and place it above the text that says

"Augmented AR

easypod AR

VIEW CASE STUDY ->"

How might I be able to do that on mobile only? (767px)

[Side Note: I had made image cards before with the image and the text, but because we wanted to include an arrow icon, I had to redesign the elements individually to include a code block to hold the arrow icon.]

147427356_Screenshot(29).thumb.png.3e3afb2b1c28fffcb8945e5849421f88.png

 

Screenshot (30).png

You can try adding to Home > Design > Custom Css

@media only screen and (max-width: 767px) {
  #block-yui_3_17_2_1_1636654140224_7060 +  .row {
    display: flex;
    flex-direction: column;
  }
  #block-yui_3_17_2_1_1636654140224_7060 +  .row .col:first-child {
    order: 2;
  }

  #block-yui_3_17_2_1_1636654140224_7060 +  .row .col:last-child {
    order: 1;
  }
}

Let me know how it works on your site

Press 👍 or mark this answer as solution to help another one too

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

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.