Jump to content

How to customize the stack order for mobile based on desktop layout.

Recommended Posts

Site URL: https://www.stockdadsofficial.com/plans

Hi all,

I am a complete amateur who has no knowledge about coding yet. I have been trying to learn but am struggling specifically getting things to show up in order on my mobile site because I had to put them in separate rows on desktop in order for everything to align correctly. Here is what it looks like on desktop in order for the buttons to align I had to make them into separate rows. But because I did this, now all of the buttons show up at the bottom of the page on the mobile view, not each button after each plan like I want it. Can anyone help a rookie out? I uploaded a view of what it looks like on mobile.

Thanks in advance!

The badges are in a row, then the text, then a spacer, then the buttons. If that helps with writing a code.

I found this on another thread but don't know how to customize it for my page. Please help!

@media only screen and (max-width: 640px) {
   #page-56fd63b662cd94b482c67b26 .row .row:nth-child(even) {
       display: table;
   }
   #page-56fd63b662cd94b482c67b26 .row .row:nth-child(even) .col:first-child {
       display: table-footer-group;
   }
}


image.png

image.png

Link to comment
  • Replies 1
  • Views 218
  • Created
  • Last Reply

This is because of the way the blocks have been "connected". When you place them on the page, each new block can be joined to the block above or the block beside it. This will determine the order when the page width is reduced. I provided a similar answer here which may help:

 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

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.