Jump to content

Change List Item Content Width Mobile Only

Recommended Posts

  • Replies 4
  • Views 934
  • Created
  • Last Reply
Posted
On 9/10/2021 at 5:43 AM, Kaiyo said:

Site URL: https://seadragon-onion-dg7x.squarespace.com/

Is it possible to change the content width of a list section on mobile only?

On the courses page, I have the content width set to 38% but it's way too narrow on mobile. I'd like it around 96% on mobile.

Thanks!

Screenshot 2021-09-09 233546.jpg

Hi,

Your site is private. Can you setup passowrd & share url?

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

  • 2 weeks later...
Posted
On 9/22/2021 at 6:20 AM, Kaiyo said:

I think it's on public now. URL is Kaiyo Sonics | 1:1 & Group DJ Lessons | Online | In Person

I ended up just duplicating the section and hiding one on mobile/one on desktop and changing the content width on mobile. If there's a better way to achieve that though it might be handy

Hi,

use this CSS

/* List section width on mobile */
@media screen and (max-width:767px) {
.list-item-content__description {
    width: 100% !important;
    max-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!)

Posted
5 hours ago, tuanphan said:

Hi,

use this CSS

/* List section width on mobile */
@media screen and (max-width:767px) {
.list-item-content__description {
    width: 100% !important;
    max-width: 100% !important;
}
}

 

perfect, thank you!

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.