Jump to content

Overlay text on individual images in a gallery section?

Recommended Posts

  • Replies 2
  • Views 288
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

2 hours ago, MattyT208 said:

Is this possible?

Do you want the image description to overlay the image? 

If that's what you want to do, I've used this code.

 

.gallery-grid--layout-grid .gallery-grid-item {
  position: relative;
}
.gallery-grid--layout-grid .gallery-caption-grid-simple p {
  text-align: center;
  font-size:3rem!important;
}

.gallery-grid--layout-grid .gallery-caption-grid-simple .gallery-caption-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-grid--layout-grid .gallery-caption-grid-simple {

height:100%!important;
box-sizing: border-box;
 padding: 10px 40px;
 position: absolute;
  left: 0;
  top: 0;
}
 

Link to comment
12 hours ago, Donna_Vincent said:

Do you want the image description to overlay the image? 

If that's what you want to do, I've used this code.

 

.gallery-grid--layout-grid .gallery-grid-item {
  position: relative;
}
.gallery-grid--layout-grid .gallery-caption-grid-simple p {
  text-align: center;
  font-size:3rem!important;
}

.gallery-grid--layout-grid .gallery-caption-grid-simple .gallery-caption-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gallery-grid--layout-grid .gallery-caption-grid-simple {

height:100%!important;
box-sizing: border-box;
 padding: 10px 40px;
 position: absolute;
  left: 0;
  top: 0;
}
 

Thanks, but that didn't seem to work for me. I'm trying to have each image slide within the gallery section have large overlaying text like the screen shot attached.

Screen Shot 2022-05-05 at 7.37.34 AM.png

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.