Skip to content

Commit

Permalink
Fix image centering. (#9509)
Browse files Browse the repository at this point in the history
Fixes #9503.
  • Loading branch information
jasmussen authored and pento committed Sep 3, 2018
1 parent 71c4d8f commit ad9c179
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/block-library/src/image/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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, <figcaptions>, 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.
Expand Down

0 comments on commit ad9c179

Please sign in to comment.