An element's padding is the space between its content and its border.
Consider the code below:
<p style="background-color: tomato; border: 1px solid black; padding:0px; ">A paragraph</p>
Here I am expecting no space between the text and the border because I am setting the padding to 0px, But I got the opposite result as shown in picture.
I am sure that, that space is not a padding, so why I am getting that space? Also is there any way to get rid of it?
Thanks)