From ad9c1798487b0606edd28b1ddc681350e4c2b3aa Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Mon, 3 Sep 2018 11:22:16 +0200 Subject: [PATCH] Fix image centering. (#9509) Fixes #9503. --- packages/block-library/src/image/style.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/block-library/src/image/style.scss b/packages/block-library/src/image/style.scss index 4922b92449f5b9..e825f126759dcb 100644 --- a/packages/block-library/src/image/style.scss +++ b/packages/block-library/src/image/style.scss @@ -38,6 +38,11 @@ margin-left: 1em; } + // Centered images. + .aligncenter { + margin: 0 auto; + } + // Supply caption styles to images, even if the theme hasn't opted in. // Reason being: the new markup, , are not likely to be styled in the majority of existing themes, // so we supply the styles so as to not appear broken or unstyled in those themes.