WordPress provides built-in functionality to align images left, right, and center, but it relies on your theme to render those images properly.

If you find that your images are not aligning correctly in your theme, you can solve this by adding a few lines of CSS to your theme’s stylesheet (preferably using a child theme), or to the Additional CSS section of the Customizer:

.aligncenter, div.aligncenter {
display: block;
margin-left: auto;
margin-right: auto;
}
.alignleft {
float: left;
}
.alignright {
float: right;
}

Once you’ve added this, you should find that your images begin aligning as intended.

If you have any questions, feel free to leave them in the comments below!

Subscribe
Notify me of
guest

3 Comments
Newest
Oldest Top Rated
Inline Feedbacks
View all comments