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.
Tags: image alignment, wordpress image
This entry was posted on Sunday, March 1st, 2009 at 3:18 pm and is filed under Blogging, Web 2.0, Web Design & CSS. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.







