<p>Alternatively, you can use percentages, which
will be calculated with respect to the width of the generated box's
containing block. 😅Therefore, assuming the container's width
is greater than the image's height, margin: -50% 0 should be enough.
Hide code snippet
</p>
How to avoid change in line-height on insertion of emojis?
>Solution :
Set css property line-height to 1.2em could set the p tag to default height
p {
line-height: 1.2em;
}