Image Alignment Problem in WordPress
Have you ever experienced image alignment problems in WordPress blogs? This is probably because your theme hasn’t been designed for the alignment code that WordPress is using.
To fix this, all you have to do is to include these code in the CSS file of the current theme:
img.centered {
display: block;
margin-left: auto;
margin-right: auto;
}img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
display: inline;
}img.alignleft {
padding: 4px;
margin: 0 7px 2px 0;
display: inline;
}.alignright {
float: right;
}
.alignleft {
float: left;
}
This has been changed since WordPress 2.5.







