Image doesn't center


#1

In this demo why doesnt image center when with :slight_smile:


margin: 0 auto;

There is room around image so 25px on each side should be enough?

JFiddle Demo


#2

img {
display: block;
margin: 0 auto;  
}

#3

my bad.,...image is inline element


#4

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.