Categories
Uncategorized

Div horizontal centering when there’s more than one of it

We know about margin: 0 auto; that will center a div horizontally. It works by setting up an equal left and right margin to the div. But I never find an easy way to do this when there’re 2 or more consecutive divs on the “same line” [...]