To fix image inside div has extra space below the image with CSS, we make the image a block element.
For instance, we write
img {
display: block;
}
to make the image a block element with display: block;
to remove the space below the image.
To fix image inside div has extra space below the image with CSS, we make the image a block element.
For instance, we write
img {
display: block;
}
to make the image a block element with display: block;
to remove the space below the image.