Jump to content

How to add border to an image with radius corners imitating the shape container element

Recommended Posts

Site URL: https://oarfish-primrose-myer.squarespace.com/

PW: Filiz

I used this CSS to create a border, but when the screensize changes, the radius changes and you can't see the black border on the top of the image.

.sqs-image-shape-container-element { 
  border: 1px solid black;

How can I imitate the shape that is already there, so the border adjusts itself no matter what screen size?

Thank you.

Bildschirmfoto 2022-04-27 um 10.41.58.png

Bildschirmfoto 2022-04-27 um 10.41.38.png

Link to comment
  • Replies 4
  • Views 459
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Try change your code to

.image-inset {
    border: 1px solid #000;
    border-top-left-radius: 15.5em;
    border-top-right-radius: 15.6em;
    overflow: visible !important;
.image-inset img {
    border-top-left-radius: 15.5em;
    border-top-right-radius: 15.6em;


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.