Images centered when caption is used
-
Hi,
I just discovered this beautiful theme and I absolutely love it. However after editing a post today I noticed that there is a behavior I found that creates an undesirable visual effect when images don’t span the full page width.
When adding a caption to an image, the image and caption text are displayed as centered when it has no alignment set. As my images are all no align, this creates a visual contrast on the page with some images being on the left and some centered. Is this working as intended? Additionally is there an option to adjust this behavior?
Tracing the CSS I noticed it seems to be originating from the .wp-caption.alignnone margin setting(line 379) which is:
margin: 5px auto 20px;
The auto value centers the caption; however, in this case the class is used in a div that encompasses the image as well as the caption text which centers both.An example of this visual effect can currently be seen about half way through this post where I have a number of images separated by sparse text: https://nautilusmode.com/2015/12/20/windows-disk-management-striped-volumes/
Thanks!
- The topic ‘Images centered when caption is used’ is closed to new replies.