Jump to content

Change flex item or row order on mobile view, can't target block

Recommended Posts

  • Replies 3
  • Views 561
  • Created
  • Last Reply

Hello!

Try this:

#collection-6071bad801a4c30c5bbfea13 {
@media screen and (max-width:640px){
.sqs-row {
display: flex;
flex-direction: column-reverse;
		}
	}
}

That should fix it but if you need to target that specific row and only that row, you'll want to use:

#collection-6071bad801a4c30c5bbfea13 {
@media screen and (max-width:640px){
.sqs-row:nth-child(2) {
display: flex;
flex-direction: column-reverse;
		}
	}
}

Hope this helps!

Link to comment
9 hours ago, Wolfsilon said:

Hello!

Try this:


#collection-6071bad801a4c30c5bbfea13 {
@media screen and (max-width:640px){
.sqs-row {
display: flex;
flex-direction: column-reverse;
		}
	}
}

That should fix it but if you need to target that specific row and only that row, you'll want to use:


#collection-6071bad801a4c30c5bbfea13 {
@media screen and (max-width:640px){
.sqs-row:nth-child(2) {
display: flex;
flex-direction: column-reverse;
		}
	}
}

Hope this helps!

Thanks for the help but nothing happened when I add either of those codes 😞

 

Link to comment
On 4/12/2021 at 11:16 PM, Luke0404 said:

Webinars — Masters Who Care

I'm talking about 'Step 2", on mobile I want the image of the man to be under the code block.

Using this: 


display: flex;
    flex-direction: column-reverse;

But I can't seem to target the row

Hi,

I see man under text here. Did you solve the problem?

image.thumb.png.41d9740efd727666a7b9b5cc2f6d7082.png

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!)

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.