Oh the joys of wordpress…

Well its been a few days since I migrated to wordpress and everyday I find another feature, another skin, plugin, etc that makes me like wordpress even more. HOWEVER there was one issue I was having, sometimes depending on the skin I was using, the alignment feature would not work correctly when inserting images. I finally searched google and found out why. In order for the alignment feature in the Media manager (the thing that opens when you click to add a image or video or whatever) you must have this code inserted into your stylesheet:

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;
}

So if this is an issue your having, try and add that into your stylesheet. So thanks to Daniel Scocco and his post located >here< this issue has been resolved on a few themes I had tried.

Leave a Reply

Your email address will not be published. Required fields are marked *


*