Jump to content

Offset border on inline image cutting off image

Recommended Posts

Site URL: https://www.erinfortinphotography.com/

Hi! I am attempting to create an offset border where the photo overflows (like the mountain photo below) and the code I'm using used to work, but now it doesn't allow for the overflow to happen (image of female below). Any thoughts on how to adjust it?  The website is www.erinfortinphotography.com

The code I'm using is: 

#business .design-layout-inline .image-block-wrapper {border: 1.5px solid #ed9f01; overflow:visible!important;} .design-layout-inline img {margin-left: 25px; margin-top: 25px; }

Thank you so much!!!


Link to comment
  • Replies 3
  • Views 652
  • Created
  • Last Reply

Top Posters In This Topic

  • 1 month later...

Add to Design > Custom CSS

div#block-yui_3_17_2_1_1616627248292_8738 {
.image-block-wrapper {
    overflow: visible !important;
.has-aspect-ratio {
    overflow: visible !important;
.has-aspect-ratio:after {
    content: "";
    display: block;
    border: 2px solid orange;
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;


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

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.