Archived posts, March 2013

How to shrinkwrap and center elements horizontally

When you need to center a floated element horizontally you can’t say “float:center”, but fortunately there are several other ways of solving the problem.

Posted on March 4, 2013 in CSS

Letting users disable responsive layout

If you need to give users the choice to disable responsive layout, here is one way of implementing a switch to toggle it off and on.

Posted on March 25, 2013 in CSS