Jump to content

[Share] List Carousel: Text over bottom left of image

Recommended Posts

Posted

To make text over on bottom left of image in List Carousel (People Section).

image.png.886b1484bec8c0566dd5d57fb8520560.png

#1. First, find ID of Carousel Section.

In my example, it is:

section[data-section-id="6704d59e0d0efb17d4423220"]

image.png.e7ea793ed69af3bb603e037bfbf1e34f.png

#2. Use this code to Custom CSS box

section[data-section-id="6704d59e0d0efb17d4423220"] {
    .list-item-content {
      position: absolute;
      bottom: 10px;
      left: 10px;
  }
}

image.png.41ac8aa43be4724c74e1ce3558b537a5.png

#3. To add a background behind text, use this new code

section[data-section-id="6704d59e0d0efb17d4423220"] {
  .list-item-content {
      position: absolute;
      bottom: 0;
      left: 0;
      background-color: #fff;
  }
  .list-item-content>* {
          padding: 10px 20px;
  }
}

image.png.0e1ed94ffae40429e74c72e4e7c84a3b.png

#4. Or if you want to add a dark overlay over image only + change text color, use this new CSS code

section[data-section-id="6704d59e0d0efb17d4423220"] {
  .list-item-content {
    position: absolute;
    bottom: 20px;
    left: 10px;
    z-index: 99999;
}
  li.list-item * {
    color: #fff;
  }
  .user-items-list-carousel__media-inner:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0,0,0,0.5);
  }
}

image.png.7c03bb1ce093fe1105e685d0e7490be2.png

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!)

  • Replies 0
  • Views 344
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.