Jump to content

[Share] How to change width of body text in Carousel Mobile

Recommended Posts

Posted

You can use these code to Website Tools > Custom CSS to change Carousel body text width on Mobile.

If code doesn't work, you can send link to page where you use Carousel, I will check again.

#1. All Carousels

@media screen and (max-width:767px) {
  .list-item-content__description {
 	 max-width: 100% !important;
  }
}

image.png.61f763c631edcc96a6d64719e448a6db.png

#2. Specific Carousel

First, find Carousel ID. 

In my example, we have

section[data-section-id="66bc7068e7f60e4ec15d760d"]

image.png.afa0ae7b5496bdf60386dc5598101ad6.png

Then we can use code

@media screen and (max-width:767px) {
  section[data-section-id="66bc7068e7f60e4ec15d760d"] .list-item-content__description {
 	 max-width: 100% !important;
  }
}

image.png.bda556054ae0505588d01071baad167c.png

#3. Specific item in Carousel

First, find Carousel ID. Similar #2. Then use CSS code like this

@media screen and (max-width:767px) {
  section[data-section-id="66bc7068e7f60e4ec15d760d"] li:nth-child(3) .list-item-content__description {
 	 max-width: 100% !important;
  }
}

Note: nth-child(3) = Carousel item 3

image.png.d743b9fc6c145c991671dc0da50af5bd.png

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

  • Replies 0
  • Views 939
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.