How to Align an Image using CSS
I had this problem previously & I faced it again today, to align an image.With text it's easy: you use the
text-alignproperty & choose one of the values
center, but that doesn't work for images, the solution was rather simple: to wrap the image with
<p>tags and use the text-align to align the
<p>& inside it the image.
It worked like a charm! Only I had some important margin below the image because of the
ptag values in my style sheet, so I had to add a
margin-buttomproperty to the
ptag with he value I wanted.
<p style='text-align: center; margin-bottom: 10px;'><img src='http://gettingeek.com/.../css-logo.gif' alt='My CSS Logo' /></p>