Jump to content

CSS to customise Gallery block

Recommended Posts

Site URL: https://coconut-penguin-g55p.squarespace.com/

Hi all,

I'm having hard times customising my Gallery Strip blocks.

I used the custom CSS code below, but I'm not quite there yet.

 

Site: https://coconut-penguin-g55p.squarespace.com/

PW: MassTrial

Page: Projects (the first element of the main menu)

 

I would like to customise the captions even more, as close as possible to the effect I obtained with the image block at the top of the same page.

Any chance someone can help with:

- caption justified to the centre (when the text wraps the caption is justified to the left)

- caption split in two lines (Project Name / Photographer Name)

- Font line above H2 (Project Name), font line below p2 (Photographer Name)

 

Thank you in advance!

 

//* GALLERY STRIP HOVER EFFECT *//
figure.gallery-strips-item {
    position: relative;}
.gallery-caption {
    position: static;}
/* title */
.gallery-caption-content {
      color: white;  
      position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20%;
    transition: opacity ease 200ms !important;
    opacity: 0 !important;
pointer-events: none;}
.gallery-strips-item:hover .gallery-caption-content {
    opacity: 1 !important;}
/* overlay */
.gallery-strips-item-wrapper a:after {
    background: #1653B3;
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity ease 200ms !important;}
.gallery-strips-item:hover .gallery-strips-item-wrapper a:after {
    opacity: 0.5;}
//* GALLERY STRIP HOVER EFFECT *//

Edited by FrancescoRusso
Adjusted post
Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Hi,

Although I asked this in a brand new topic, I copy it here because it's pretty relevant:

I'm trying to make a gallery block with 4 images that have custom image ratios and text on them.

You can see my goal on the attached picture. Do you guys have any suggestions how to make this happen?

Thank you in advance!

custom_gallery_section-01.jpg

Link to comment
14 hours ago, Ferenc said:

Hi,

Although I asked this in a brand new topic, I copy it here because it's pretty relevant:

I'm trying to make a gallery block with 4 images that have custom image ratios and text on them.

You can see my goal on the attached picture. Do you guys have any suggestions how to make this happen?

Thank you in advance!

custom_gallery_section-01.jpg

Can you share your site url?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.