Jump to content

Reorder Layout on Mobile

Recommended Posts

Site URL: https://www.fieldsent.com/tce

Hi -

I built a page to showcase a client's library of videos. They wanted a specific layout, so I did not use the new video page option.

The page layout is:

Row 1:
<video> <Text Rule Text Rule 3-col Text>

Row 2:
<Text Rule Text Rule 3-col Text> <video>

I'd like the video to be on top of the text on mobile for all listings, but remain alternating on desktop.

I do have a limitation in regard to sections. I'm using a tab function that pulls all items in a section into a tab panel. I have multiple listings in a section and I can't list each item in its own section.

The page password is: U29%4RjumYgr

Thanks!
Sarah

Link to comment
  • Replies 4
  • Views 252
  • Created
  • Last Reply

Top Posters In This Topic

Each tab, you will need a different code

With SI F0, add to Design > Custom CSS

/* Order mobile */
@media screen and (max-width:767px) {
div#page-section-627d81ab6092d6581d64d2ad {
&>.row:nth-child(3) {
    display: flex;
    flex-direction: column-reverse;
}
&>.row:nth-child(7) {
    display: flex;
    flex-direction: column-reverse;
}
&>.row:nth-child(8) .row:nth-child(4n) {
   display: flex;
    flex-direction: column-reverse;
}}}

 

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
22 hours ago, tuanphan said:

Each tab, you will need a different code

With SI F0, add to Design > Custom CSS

Hi Tuanphan,

Your code worked perfectly for all the sections, except the last one, which has 40 rows. 

Would you be able to help me with the code for that section as well?

Thank you!

Sarah

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.