There may be one WordPress function that was launched with model 2.5 that at all times made me curious: the picture alignment function of the “Add media” editor. Why? As a result of it by no means labored!
I knew that I used to be most likely doing one thing improper, however since I didn’t have time to search out it out, I simply saved selecting “none” because the alignment, after which I’d manually insert the best, left or heart alignment attribute on the picture tag.
Then final week once I was submitting one among my themes for the WordPress Themes Listing I bought a message saying that since model 2.5 WordPress themes had been required to have the next code on their stylesheet:img.centered {
show: block;
margin-left: auto;
margin-right: auto;
}
img.alignright {
padding: 4px;
margin: 0 0 2px 7px;
show: inline;
}
img.alignleft {
padding: 4px;
margin: 0 7px 2px 0;
show: inline;
}
.alignright {
float: proper;
}
.alignleft {
float: left;
}
Duh! That’s the reason the alignment function was not engaged on my blogs, I by no means added that code! Now for those who confronted this downside up to now, now you know the way to resolve it.