The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to get the border effect Reply To: How to get the border effect


I wonder if you could fake it with psuedo elements (or just regular ones) absolutely positioned above the box in the corners?

You could and indeed I found something to that effect on Stack Overflow…but it needs at least two elements (to get 4 pseudo elements) and that sounds like lot of hassle for something that I would (pending actual CSS) currently be using an SVG for.