Jump to content

How to add a graphic border/frame to a gallery and/or image block?

Recommended Posts

Is it possible to add a graphic border/frame to the bottom of a gallery and/or image block?  See example screen shot of my unpublished site in the works.  I would like to add a banner border to the bottom of the image (slideshow) as circled in red.  That same slideshow repeats on all pages across the site and I would like for the banner border to appear on all the pages.  

screencap.JPG

Link to comment
  • Replies 7
  • Views 1k
  • Created
  • Last Reply

Add the following to Design > Custom CSS.

.gallery-section:first-child {

  border-bottom: thick solid red;
  
  }

This is for a v7.1 site.

You can change the property values as needed.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Hi Creedon - That works fine and that is the exact location I would like to have a border but I would like the border to be an image instead of a solid colored line.  I'd like to use an image similar to this one attached (but this likely is not necessarily the exact one I will end up going with). 

flagspng.png

Link to comment

It's a little bit tricky working with border images but it can be done.

1285567259_ScreenShot2021-02-04at3_32_52PM.thumb.png.17f6a2cce4b09865110d2cb6455dc9ae.png

You really need to nail down the exact image you want to use because it will probably need to be prepped with some image processing to be useable.

In general though something like the following CSS would be used.

.gallery-section:first-child .content-wrapper {

  border-bottom : 132px solid;
  
  border-image-source : url( https://images.squarespace-cdn.com/content/5f45b6f91dc07d67fcb6905c/1612479768148-XJU8BSTGWTMLNNPSZOC4/flagspng.thumb.png );
  
  border-image-repeat : repeat;
  
  border-image-slice : 0 0 132 0;
  
  }

This is for a v7.1 site.

Don't depend on the image url in the CSS being around. It's just an example I threw together.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

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.