2 posts

Surprisingly useful CSS glitch

Today a colleague wanted to make some divs square. My first reaction was: 'I doubt this can be done with only CSS', but he proved me wrong. There is an example at that uses two divs with specific positioning to accomplish this task. But the most interesting part was the padding-top 
Philipp on css

CSS did it again

While checking for availability of display:flex on i stumbled upon the length units vh, vw, vmin and vmax. What a revelation! Those are viewport dependent length values, where 100vh are 100% of the real height of the viewport. For all things mobile this makes my life so much easier... 
Philipp on css and viewport