How do I center an within a div?
I have been trying to center this image inside its div, but it keeps aligning to the left.
I have tried using
margin: auto; and
align:middle; but neither seem to work.
No need for relative/absolute positioning.
A simple way to solve this is by setting
display:block on the image.
jsFiddle demo - it works perfectly.