Jump to content

GSS2

Member
  • Posts

    12
  • Joined

  • Last visited

Posts posted by GSS2

  1. Hello,

    I've been able to add <BR> text in image captions on standard galleries. I'm trying to break text onto multiple lines on a Portfolio basic grid -- but have been unsuccessful in the <BR> tag being read the same way it is in galleries.

     

    Is there a way to add that into the custom CSS? 

     

    The below worked fine to center the portfolio text - but the line break is where I'm stuck. Thanks!

     


    .portfolio-grid-basic {    
      text-align: center !important;
    flex-direction: column;
        justify-content: center;
        align-items: center;}

  2. Hello,

    I pulled the code below to remove the extra buffer between captions and image blocks -- and it worked. It has an undesired side effect that vertical images are now very narrow and small. Wondering how I can remove the padding but still keep images at full width on mobile?

    All of my CSS below - relevant lines in red. Thank you.

     

    Good page (all horizontal image): https://llama-cobalt-lm35.squarespace.com/covid

    Bad page (vertical image): https://llama-cobalt-lm35.squarespace.com/artists

    password: everke

    /* Center captions within the gallery grid */
    /* Apply to all screen sizes */
    .gallery-lightbox-background {
      opacity: 1;
      background-color: white; /* Change the background color here */
    }


    /* Adjusting margin for the caption */
    .gallery-caption .gallery-caption-content {
       font-size: 18px !important;
    }
      /* Center captions using flexbox */
      .gallery-caption-grid-simple,
      .gallery-caption-grid-strips,
      .gallery-caption-grid-masonry {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: 100% !important;
        text-align: center !important;
      }


    @media only screen and (max-width: 767px) {
        .gallery-slideshow[data-show-captions="true"][data-thumbnails="false"] {
          margin-bottom: 70px !important;
          height: 60vw !important;
        }
        .gallery-caption {
            margin-top: 0 !important;
      
        }

      .gallery-caption .gallery-caption-content {
       font-size: 12px !important;
    }

    }

×
×
  • 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.