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
September 25, 2012 at 11:31 am
#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