Help with making only border corners visible! (Example inside)
I'm doing this simple exercise and just noticed this little thingy they did with borders. I have no clue how they made it.
Any ideas?
Edit: No pictures were used for it.
12 Replies
dunno, but you could always place a :before and :after pseudo element at both ends with rounded corners and offset them by a pixel or 2? There's definitely a better way of doing it though
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
None of that would make only corners visible though.
I believe.
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
Let me check it š
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
Yeah, it is a solution, but it does not match 100% with theirs. Will try looking for it myself, and will see if I find anything. Thanks for helping either way! LD
š
My approach using clip-path
https://codepen.io/CodeNascher/pen/BaOKERd
Unknown Userā¢2y ago
Message Not Public
Sign In & Join Server To View
it's not 100% perfect tho.
if you zoom in you can see a tiiiiny bit of the non-clipped border
must be rounding issues or sub-pixel stuff
using
border-image
could work too maybe.
and it's slightly different in different browsersWill save it and try it out in a bit.
š
It does look daunting.
Not working š¦
But the idea is there
So I kinda did it if anyone is interested
.category being the main div, around which I needed to have that border