For those who actually want to see the code behind this:
https://github.com/mrmrs/fluidity/blob/master/css/fluidity.c...
It's a good start to getting properly responsive websites. A lot of times this really is all that's needed. But sometimes more complex solutions are needed for certain elements.