Jump to content

Adding text in the middle of an gallery block simple image

Recommended Posts

  • Replies 6
  • Created
  • Last Reply
7 hours ago, ArvinPaul said:

Site URL: https://elephant-wrasse-w57r.squarespace.com

image.thumb.png.fc39d1e4b6a4511e01938f4a6206e572.pngHow do I remake this style with my gallery block

this was the link of that website https://dillonkivo.com/

the password of my website is 123456

Gallery support desciption in html

<img src="https://upload.wikimedia.org/wikipedia/commons/6/6d/Windows_Settings_app_icon.png"/><h1>INCREASE INCOME</h1>

image.png.1156647381e9f64be3de6070fc022b92.png

Add this to custom css and modify as your need

.gallery-grid-item {
  position: relative;
}
.gallery-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.gallery-caption-wrapper img {
    position: relative;
    width: 32px;
    margin: 0 auto;
}
.gallery-caption-wrapper h1 {
    text-align: center;
    font-size: 1em;
    margin-top: 10px;
}

 

image.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 2 weeks later...
On 3/4/2021 at 10:59 PM, bangank36 said:

Gallery support desciption in html


<img src="https://upload.wikimedia.org/wikipedia/commons/6/6d/Windows_Settings_app_icon.png"/><h1>INCREASE INCOME</h1>

image.png.1156647381e9f64be3de6070fc022b92.png

Add this to custom css and modify as your need


.gallery-grid-item {
  position: relative;
}
.gallery-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.gallery-caption-wrapper img {
    position: relative;
    width: 32px;
    margin: 0 auto;
}
.gallery-caption-wrapper h1 {
    text-align: center;
    font-size: 1em;
    margin-top: 10px;
}

 

image.png

I dont know why it does not work on my site maybe there is something wrong with my code? and I would like to add the brightness hover effect how do I add it to my gallery block? 

pls help me

https://manatee-azalea-la3y.squarespace.com

pass: 123456

Link to comment
20 minutes ago, ArvinPaul said:

I dont know why it does not work on my site maybe there is something wrong with my code? and I would like to add the brightness hover effect how do I add it to my gallery block? 

pls help me

https://manatee-azalea-la3y.squarespace.com

pass: 123456

you should make caption enabled

image.png.adda924670f4f9e4f48aeec6ac4ab25e.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

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.