The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Image not centering – how to fix ? Reply To: Image not centering – how to fix ?


Magento’s WYSIWYG is pretty terrible. I always tell clients to not use that, and just use the HTML code part for any CMS block.

Anyway, the reason why the images don’t do that, can be found on line 438 of styles.css:

img {
  display: block;

Only images that are displayed inline will center when its parent has “text-align:center;”, so you’re going to have to override it one way or another.