Jump to content

Paragraphs in Gallery Captions

Recommended Posts

Hello all, 

I'm trying to make a clickable image with a hover effect as well, 

I have this code in: 

.gallery-caption {
position: absolute;
top: 0;
left: 0;
background: rgba(0,0,0,0.8); /* overlay color */
height: 100%;
max-width: unset;
padding: 0;
opacity: 0;
pointer-events: none; /* enable click */
}
.gallery-caption-wrapper {
display: flex;
align-items: center; /* center vertically */
  text-align: center;
justify-content: center; /* center horizontally */
}
.gallery-caption-content {
font-size: 0.8rem !important; /* caption font size */
color: white; /*caption font color */
}
.gallery-grid-item {
position: relative;
}
.gallery-grid-item:hover .gallery-caption {
opacity: 1;
}
.gallery-caption-grid-simple {
transition-delay: 0ms;
}

 

It makes me happy with the result, however where the words "Marketplace: click here" begin - I would like to have it as another paragraph, have the space between the text ant that phrase.  Could anyone help with the code for that please? 

 

Thank you!

Capture.PNG

Link to comment
  • Replies 1
  • Views 831
  • Created
  • Last Reply

Top Posters In This Topic

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.