Jump to content

Cover Page: Align text with Slide images width

Go to solution Solved by Lesum,

Recommended Posts

Posted (edited)

Hi 

I have a cover page with some slides, it takes the alt/title of each slide and I just need to align the text to be in the right bottom of the image (now it goes to the full width of the screen, see attached image)

Do you have any idea or tip about how to make it work adapting to each image slide width?

https://cristobal-roig-test.squarespace.com
Password:2024

I could add you as admin if necessary.

Perfect Alignment.jpg

Edited by jjohansson
  • Replies 2
  • Views 931
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution
Posted

@jjohansson Apologies, I didn't see your invite from Squarespace earlier. I have just added the code. Now, you'll see that the image title is aligned to the right.

Here is the code to align the image title to the right:

.sqs-slide-wrapper[data-slide-type="cover-page"] .sqs-slide-container:not(.auto-image-background-color) div:not(.sqs-gallery-circle)>[data-slice-type="gallery"]:not([data-content-empty="true"]) .sqs-slice-gallery-item {
 width:  max-content;
 left: 50%;
 transform: translate(-50%, 0%);
}

This solution is for cover page carousel images on the Squarespace 7.0 Avenue template. The solution to transform image alt text into a title was posted in this forum thread: Cover Page Text with Each Slide.

If my comments were useful, please like or mark my solution as answer so others can scroll to it quickly. 

Sam
Web Developer & Digital Designer

 Did you find my contribution helpful? Buy me a coffee?

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.