Jump to content

Change order of blocks on mobile

Recommended Posts

Site URL: https://restor-home.co.nz/

Hi there,

For some reason I cannot get this to work for me. 
I know it's a simple code but all the code I have been using isn't changing the oder in MOBILE so I am obviously missing something. 

-----------------

Used this information below to help guide me but it's still not working. 

 

So I want the image above the text on mobile. 
See below.

2124865277_Screenshot2021-09-14at11_44_40.thumb.png.6205beb303b7efb0aa16cb494939d3cf.png
411054044_Screenshot2021-09-14at11_56_28.thumb.png.a3507e7cc1db8801f50adf345ac09334.png
 

@media screen and (max-width:640px) {
div#<insert block code here>.row {
    display: flex;
    flex-direction: column-reverse;
}
}


 

Edited by moxxbrands
Link to comment

// Homepage - Laundry Sheet Mobile Version Only //

section[data-section-id="6115d829f0e9896832def4c2"]
{
@media only screen and (max-width:640px) 
}
.sqs-row {display: flex!important;
flex-direction: column-reverse!important;}  


So I have used this code. 

Works for MOBILE now but stacks for DESKTOP. 

Theoretically it should only be affecting MOBILE. 




 

Link to comment
11 hours ago, moxxbrands said:

// Homepage - Laundry Sheet Mobile Version Only //

section[data-section-id="6115d829f0e9896832def4c2"]
{
@media only screen and (max-width:640px) 
}
.sqs-row {display: flex!important;
flex-direction: column-reverse!important;}  


So I have used this code. 

Works for MOBILE now but stacks for DESKTOP. 

Theoretically it should only be affecting MOBILE. 




 

You have some errors in this code which is probably why the media query isn't working. Try 

 

// Homepage - Laundry Sheet Mobile Version Only //

@media only screen and (max-width:640px) {
section[data-section-id="6115d829f0e9896832def4c2"]
.sqs-row {
display: flex!important;
flex-direction: column-reverse!important;
}  
}

Coding Wiz at rebeccagracedesigns.com

📖 Code Encyclopedia for Squarespace: rebeccagracedesigns.com/encyclopedia-of-code

🔥 Free CSS Tutorials: rebeccagracedesigns.com/blog

️ Free Guide to the 41 Most Popular CSS Properties: rebeccagracedesigns.com/popular-css-properties

 

Link to comment
On 9/15/2021 at 5:10 AM, rebeccagracedesigns said:

You have some errors in this code which is probably why the media query isn't working. Try 

 

// Homepage - Laundry Sheet Mobile Version Only //

@media only screen and (max-width:640px) {
section[data-section-id="6115d829f0e9896832def4c2"]
.sqs-row {
display: flex!important;
flex-direction: column-reverse!important;
}  
}

Thanks so much. Didn't see these messages come in. 
All fixed now. Appreciate the responses. 🙂 

Yay fixed!

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.