Jump to content

Summary block : Title over thumbnail css

Recommended Posts

Posted

Hello !

I would need some help as I would like to have my blogposts summaries look like the photo enclosed. I'd like the title and image to overlap and the title to be in a sort of " white box" (collage style but centered)Do you maybe have some css code to help me ? I have been looking all over the internet but couldn't see anything helpful ! Here is my website if that can help : slaemag.com

Thanks so much in advance !

Jessica

image-overlap.jpg.b283efe8394f3aa6bf7f860cab138eb5.jpg

  • 1 month later...
  • Replies 2
  • Views 2.3k
  • Created
  • Last Reply
Posted

I have the same question! I've found something that works, but isn't as perfect.

  1. .summary-title-link {
  2. background: #ffffff;
  3. padding-right: 10px;
  4. padding-left: 10px;
  5. position: relative;
  6. bottom: 40px; }

Putting this in your CSS will at least display the title with a white background and slightly overlay the text (this can be adjusted by changing the "bottom" number). If anyone has a better solution I am dying to hear it!

  • 2 months later...
Posted

.sqs-block-summary-v2 {
    .summary-item {
      position: relative;
      .summary-content {
        position: absolute;
        bottom: 0;
        top: auto;
        padding: 70px 20px 0px;   
      }
  }
}
.summary-title {
  background: #f4f1ef;
  padding: 5px;

 

This worked for me!

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.