DEV Community

Discussion on: Using SVG as a Border with CSS

Collapse
 
xowap profile image
Rémy 🤖

I've learned this trick about 5 years ago and I've waited until last week to find a good reason to use it. Most beautiful day of my life :')

Collapse
 
jackharner profile image
Jack Harner 🚀

Definitely a rare use case, but I needed to make a chalkboard that scaled based on content layout and screen size, and this was the best way to do that.

Collapse
 
xowap profile image
Rémy 🤖

Not so rare before border-radius was invented, but at the time border-image didn't exist either, so... Yeah pretty rare.