31
The 2-line CSS clip-path trick I found in a 2012 blog post still works
I was digging through some old bookmarks last weekend (you know, the ones from before everything became a framework) and found this tiny post about using clip-path with polygon for image shapes. The post was from 2012, back when browser support was basically a joke. But I tried the exact two lines on a current project for a client's quirky pricing cards and it still holds up perfectly. No extra divs, no SVG background, just a single element with a custom shape. Honestly shocked me how a trick that predates flexbox being usable is still the cleanest way to do this. Has anyone else found old techniques that beat modern tools? Or am I just cheap on bytes?
0 comments
Log in to join the discussion
Log In0 Comments
No comments yet
Be the first to share your thoughts on this discussion.