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

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

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.