Jump to content

MehdiNih

Member
  • Posts

    1
  • Joined

  • Last visited

Reputation Activity

  1. Like
    MehdiNih reacted to jonongec in Style 7.1 Gallery Captions   
    https://www.jonathanong.com/

    Currently I'm using this code
     
    }
    figcaption.gallery-caption.gallery-caption-grid-strips {
        position: absolute;
        top: 42%; 
        left: 50%;
        bottom: 0;
        background: rgba(0,0,0,0.0);
        color: white;
        left: 0;
        text-align: center;
    }
    p.gallery-caption-content {
      font-size: 120% !important;
    }
     
    I'm finding the captions sometimes centered, sometimes not.
    Also top : 42% seems more centered than 50% for some reason.
    Basically I just want the caption in the absolute center of the image.
     
    And also if you have code for making the whole image and caption to be able to be clicked through. Currently you can't click on the caption but can click on the rest of the photo.
×
×
  • 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.