Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0
gehernando

Overlaying Summary Heading and Summary Title over an image

Question

Posted (edited)

Site URL: https://turncoat.squarespace.com/home

Hello! I have summary block sourcing from a gallery and set to display as a carouseI for just one item.

How can I center the Summary Heading "Color of the Week" and the Summary Title "Absinthe" in the center of the image? (see attached example).

.sqs-block-summary-v2 {

    .summary-title{

    }
    .summary-heading{

    }

}

 

Screen Shot 2020-03-24 at 9.30.26 PM.png

Screen Shot 2020-03-24 at 9.35.37 PM.png

Screen Shot 2020-03-24 at 9.33.37 PM.png

Edited by gehernando
added url

Share this post


Link to post

3 answers to this question

Recommended Posts

  • 0

Can you share link to your site?

--

I guess you can try CSS Flex with justify-content: center; align-items: center

or CSS position:absolute with transform: translate(-50%,-50%)


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

This seems to be working:

.summary-heading {
  z-index:99;
  position: absolute;
  text-align:center;
  top: 45%;
  left: 50%;
  width:100%;
  transform: translate(-50%, -50%);
   color:#fff;
 }

.summary-title{
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family:"Adobe Caslon";
    color:#fff;
 }

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...