Jun 15
0
Center Images
I put an image in one of my blogs’ sidebar yesterday, and it came out aligned to the left - which looked a bit naff.
I tried basic html - where you enclose what you want centred in <center> </center> tags - but that didn’t work!
After a bit of research, I found two ways of overcoming my problem. The trick is to put the image inside a page element that can be aligned to the center - such as a DIV or a paragraph tag:
<div align=”center”><img src=”image.gif” alt=”description”></div>
<p align=”center”><img src=”image.gif” alt=”description”></p>
When I did that - success! Just a handy little tidbit of knowledge…



