title: Make a div floated but keep it centered when the space is not enough
body: <p>I want to have something like a grid where when there is no enough space on the window for more than 1 element each element stays centenred, but when there is more space they get floated to the left. Is there a way to achieve this using only css?</p>