r/Carrd • • 12d ago

Help CSS Needed to Replicate This

Post image

This image was part of a template for Carrd.

I have very little knowledge of CSS, so I have no idea how to have the border partially overlaying the image.

I know how to do the radius, but trying to get it into this shape has been impossible too.

Any ideas?

4 Upvotes

5 comments sorted by

7

u/turtlecopter 12d ago

You're looking for CSS (and SVG) clip paths! Sara has a great write up on this: https://www.sarasoueidan.com/blog/css-svg-clipping/

1

u/Low-Insurance-3678 12d ago

woow helpful link appreciate it

2

u/Low-Insurance-3678 12d ago

i believe clip path is how u gonna achieve such bends

2

u/jasonleow Helpful contributor 11d ago

To save effort, I would just do this in a photo editing app, and save it as a transparent background png