Follow

RT Chris Coyier
Whack the corners off of whatever.
clip-path: polygon(0 5%, 5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%)
Or better, for those non-zero and non-100's, use a fixed value and calc() to pull it down off 100, so they stay at 45-degree angles.
codepen.io/chriscoyier/pen/yvQ

:sys_twitter: twitter.com/chriscoyier/status

· · Twitter · 0 · 0 · 0
Sign in to participate in the conversation
小森林

每个人都有属于自己的一片森林,也许我们从来不曾走过,但它一直在那里,总会在那里。迷失的人迷失了,相逢的人会再相逢。愿这里,成为属于你的小森林。