Jump to content

Simple List section - Force the number of columns on mobile screens

Recommended Posts

Site URL: https://www.savvy-executive-search.com/

I have a simple list section comprising of 4 columns.  This works well on larger screen sizes but on a tablet, the list becomes 3 across and 1 below.image.thumb.png.d60f087aec55316d21120f833b930315.png

But on a tablet screen in landscape this happens

212684440_ScreenShot2022-06-30at9_32_21AM.thumb.png.f9e20e8cde94584e36d3d3379376cd72.png

Is there a way that I can force 4 columns on a tablet landscape screen?

I have tried this CSS but to no avail!

@media (min-width:1024px) {

section[data-section-id="62bbb8e067b9fa4d2977a3f5"]  .user-items-list-item-container {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

}

Any help would be greatly appreciated.

Link to comment

Add to Design > Custom CSS

@media screen and (max-width:1024px) and (min-width:768px) {
.user-items-list-item-container[data-section-id="62bbb8e067b9fa4d2977a3f5"] {
    grid-template-columns: repeat(4,1fr) !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
10 hours ago, tuanphan said:

Add to Design > Custom CSS

@media screen and (max-width:1024px) and (min-width:768px) {
.user-items-list-item-container[data-section-id="62bbb8e067b9fa4d2977a3f5"] {
    grid-template-columns: repeat(4,1fr) !important;
}
}

 

Thank you Tuan.  Greatly appreciate your help.

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.