Jump to content

How do I get caption text below an image to be over the image in gallery:slideshow simple?

Go to solution Solved by creedon,

Recommended Posts

Site URL: https://kistcreekcattle.squarespace.com

Hi,

I am trying to write css to put the slideshow caption over a slide image. I have been able to access the slide item in the slideshow and color the background of the caption text but I don't know how to put the caption text over the slideshow image. Can you help? Here is my css code: 

.gallery-slideshow-item-wrapper{opacity:0.4;}

.gallery-caption-slideshow
{background-color:rgba(0, 0, 0, 0.2)}

Attached is a image of what I am trying to achieve. The sitewide password to my site is :#Cattle. The slideshow I am playing with is the first slideshow under Horses For Sale. The second slideshow is what I am trying to do using an inline image that has this functionality in squarespace 7.1.

Thanks so much,

Margaret

text-overlay-example.jpg

Link to comment
  • Solution

Replace your .gallery-caption-slideshow ruleset with the following.

.gallery-caption-slideshow {

  background-color : rgba( 0, 0, 0, 0.8 );
  height : auto;
  margin-top : 0;
  padding : 0.5em;
  position : absolute;
  top : 50%;
  transform : translateY( -50% );
  
  }

This is for v7.1 and specific to the posters need.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 2 years later...

Here is a variation on my previous code for Slideshow : Full.

.gallery-caption-fullscreen-slideshow {

  background-color : rgba( 0, 0, 0, 0.8 );
  color : white;
  height : auto;
  margin-top : 0;
  padding : 0.5em;
  position : absolute;
  top : 50%;
  transform : translateY( -50% );
  
  }

This is for v7.1.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
On 7/30/2024 at 5:10 AM, ShreyaK said:

no the font is still not h2, its not letting me set it to h2, also want to make the box bigger to match this 

Screenshot 2024-07-22 at 1.16.50 AM.png

You can use this to Website Tools > Custom CSS
 

body.homepage .gallery-section .gallery-fullscreen-slideshow .gallery-caption p {
    font-size: 40px !important;
    line-height: 36px;
    font-family: freight-display-pro;
    font-weight: 400;
}

 

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

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.