CSS port of Justin Mezzell original idea