Jump to content

Offset image border cutting off image.

Recommended Posts

Site URL: https://ferret-bird-3rl2.squarespace.com/config/settings/site-visibility


Attempting an offset border, but image is being cut off. I inserted the following:

#block-8b839941f5d796fbef77 .design-layout-inline .image-block-wrapper {
border: 0.05em solid #968F87;  overflow:visible!important;
}
#block-8b839941f5d796fbef77 
.design-layout-inline img {
  margin-left: 25px; 
  margin-top: 25px; 
}

Cannot figure this out...

SITE:  https://ferret-bird-3rl2.squarespace.com
PW:  blahblahblah

OFFSET BORDER ISSUE.PNG

Edited by Poppyseeds
add password
Link to comment

Add to Design > Custom CSS

#block-8b839941f5d796fbef77 .design-layout-inline img {
    margin-left: 0 !important;
    top: 0 !important;
    height: auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    border: 3px solid black;
}

 

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
7 hours ago, tuanphan said:

Add to Design > Custom CSS

#block-8b839941f5d796fbef77 .design-layout-inline img {
    margin-left: 0 !important;
    top: 0 !important;
    height: auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    border: 3px solid black;
}

 

You are the king!!!

I modified this a bit:

#block-8b839941f5d796fbef77 .design-layout-inline img {
  margin-right: 0 !important;
  top: 0 !important;
  height: auto !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  border: 1.5px solid #968F87;
  padding: 4.5% !important;
}

 

I'm ultimately trying for a box type of effect like in the original photo, but am only getting two sides. Spent well over an hour trying to get it right...

But, alas. 

And I have to have this site done by Friday. I'm so lost!

Thank you, Tuan.

LISA OFFSET_adj.png

LISA OFFSET.PNG

Link to comment
On 1/13/2022 at 3:31 AM, Poppyseeds said:

You are the king!!!

I modified this a bit:

#block-8b839941f5d796fbef77 .design-layout-inline img {
  margin-right: 0 !important;
  top: 0 !important;
  height: auto !important;
  width: 100% !important;
  margin-bottom: 0 !important;
  border: 1.5px solid #968F87;
  padding: 4.5% !important;
}

 

I'm ultimately trying for a box type of effect like in the original photo, but am only getting two sides. Spent well over an hour trying to get it right...

But, alas. 

And I have to have this site done by Friday. I'm so lost!

Thank you, Tuan.

LISA OFFSET_adj.png

LISA OFFSET.PNG

You mean

You mean, you want border same as first image?

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
  • 1 year later...

@Poppyseeds

This is quite easy with a pseudo-element, add this and adjust the values:

#block-8b839941f5d796fbef77:before {
  content:'';
  position:absolute;
  height:100%;
  width:100%;
  background-color:none;
  border:2px solid #968F87;
  top:-18px;
  right:20px;
}

Let me know how that works for you.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.