Skip to content

Remove bottom padding on images

Himanshu Kapoor requested to merge himkp-img-bottom-padding into master

What does this MR do and why?

Remove bottom padding on images. Also remove vertical-align setting on code.

Changelog: fixed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After

image.png

(Images should be aligned to baseline, not middle.)

image.png

image.png

image.png

image.png

image.png

image.png

Both images are in the same line, but due to their width they split into two lines

image.png

vertical-align: baseline on the image adds vertical margin automatically for two wide images on the same line, so a margin hack is not needed.

How to set up and validate locally

  1. In markdown editor, insert a few screenshots, of small and big sizes, and some text before/after the image, testing various scenarios as mentioned in the sceenshots.
Edited by Himanshu Kapoor

Merge request reports

Loading