Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS how do i use the auto selector to place an image tag in the middle of a DIV tag Re: how do i use the auto selector to place an image tag in the middle of a DIV tag

#110756
Paulie_D
Member

He means that


margin: 0 auto;

is the same as


margin:0 auto 0 auto;

but add this


display:block;

Like this: http://codepen.io/Paulie-D/pen/grosf