Jump to content

Stacking text blocks and adjusting accordion block padding in mobile

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://trinity-united.squarespace.com/meet-our-team

Hi, I'm having issues with some mobile view settings on my site. I'm using Squarespace 7.1

 

The site can be viewed here: https://trinity-united.squarespace.com/meet-our-team 
PW: Trinity-Blvd

 

If you scroll down to the red section that has the accordion of the staff bios, I'd like that to span the width of the screen but can't seem to locate where to adjust that in css.

Also, I've added css to stack the header and accordion since it's auto format goes side-by-side. The code I found to put in stacks them in the wrong order as I need the heading above accordion. Does anyone know what I'd got wrong in the code?

section[data-section-id="61b1201f250f073b7bbff239"] .sqs-row {
  display: -webkit-flex !important;
  -webkit-flex-direction: column-reverse;
   display: flex;
}

Thanks in advance!

Screen Shot 2022-01-26 at 8.07.56 PM.png

Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

On 1/28/2022 at 3:18 AM, tuanphan said:

Change to this code

section[data-section-id="61b1201f250f073b7bbff239"] .sqs-row {
  display: -webkit-flex !important;
  -webkit-flex-direction: column;
   display: flex;
}

 

Thank you! Do you know how to adjust the accordion padding so it spans the whole width of the page on mobile/tablet view?

Link to comment
On 2/2/2022 at 12:18 AM, BoulevardNorth said:

Thank you! Do you know how to adjust the accordion padding so it spans the whole width of the page on mobile/tablet view?

Add to Design > Custom CSS

.accordion-item__description {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

 

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

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.