Center Alignment (for text & images)
-
Hi,
I’ve been having issues with center-alignment in relation to text and images (including an embedded spotify player (http://www.anders-asker.se/music/).
I was able to fix the text alignment by going into the HTML of the block and adding a “<center> /center>” code, but I’m not able to do the same thing for the images. After a google search I saw solutions suggesting the addition of the following code the CSS. These fixes also failed to provide a fix. Does anyone have any other solution?
Example of posted text in CSS
}.wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image.is-resized {
display: block;
}.wp-block-image .aligncenter, .wp-block-image .alignleft, .wp-block-image .alignright, .wp-block-image.is-resized {
display: block;
text-align:center;
}.wp-block-image .aligncenter>figcaption, .wp-block-image .alignleft>figcaption, .wp-block-image .alignright>figcaption, .wp-block-image.is-resized>figcaption{text-align:center;}
.wp-caption .wp-caption-text {
text-align: center;
}Thank you.
The page I need help with: [log in to see the link]
The topic ‘Center Alignment (for text & images)’ is closed to new replies.