Jump to content

[Share] Add padding on Masonry Gallery Caption

Recommended Posts

To add padding on Masonry Caption, you can use these CSS code to Website Tools > Custom CSS.

If CSS doesn't work, you can send link to page where you use Masonry, I will check it again.

#1. All Masonry Captions (Desktop)

@media screen and (min-width:768px) {
  figcaption.gallery-caption.gallery-caption-grid-masonry {
      padding-left: 50px;
      padding-right: 50px;
      width: calc(~"100% - 100px");
  }
}

#2. All Masonry Captions (Mobile)

@media screen and (max-width:767px) {
  figcaption.gallery-caption.gallery-caption-grid-masonry {
      padding-left: 10px;
      padding-right: 10px;
      width: calc(~"100% - 20px");
  }
}

#3. Specific Masonry (Desktop)

First, you need to find Masonry Gallery ID.

Next, use CSS code like this

@media screen and (min-width:768px) {
  section[data-section-id="66d426c1fb5aaa778bed4721"] figcaption.gallery-caption.gallery-caption-grid-masonry {
      padding-left: 50px;
      padding-right: 50px;
      width: calc(~"100% - 100px");
  }
}

#4. Specific Masonry (Mobile)

Similar #3, find ID, then use CSS code like this

@media screen and (max-width:767px) {
  section[data-section-id="66d426c1fb5aaa778bed4721"] figcaption.gallery-caption.gallery-caption-grid-masonry {
      padding-left: 10px;
      padding-right: 10px;
      width: calc(~"100% - 20px");
  }
}

 

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
  • Replies 0
  • Views 328
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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.