Archive for June, 2013

Fluid width squares in CSS

Wednesday, June 5th, 2013

It’s easy to make a perfect square in CSS – set an equal height and width and boom, you’re done. But what if you don’t always know the width of the square? For instance you’ve given the structures percentage widths to fit a fluid container.

No hacks, no javascript? (more…)