Center caption images not centered inside WordPress posts

Just got tired of how the images inside my posts didn’t get centered, but instead were aligned to the left, even if I had set them to be centered, and they were rendered to inside the WordPress WYSIWYG editor.

I use the Arclite theme, which lets you add personalized CSS styles inside the settings, but I guess you can use other methods to do the same with your them, or add them manually if it comes to that

What I added to the CSS was:

.aligncenter {margin-left:auto;margin-right:auto;}

which is apparently working, as I just did it, and the images are centered now in firefox. Didn’t bother to test IE.

  This article has been Digiproved