Возможный дубликат:
Как центрировать DIV в DIV?
Пожалуйста, взгляните на изображение ниже:
Как сделать серые квадраты горизонтально центрированными внутри красного контейнера div? Все это сделано с изотопом, поэтому, пожалуйста, помните об этом.
Спасибо заранее.
Даже если родительский (красный) div всегда выровнен по середине, серые, меньшие - нет. В верхнем изображении, когда они выровнены в одном столбце, этот столбец должен находиться в точной середине обертки (красный) div.