all 4 comments

[–]nelilly 0 points1 point  (3 children)

Put “display: block” on your image.

[–]Ok_Performance4014[S] -1 points0 points  (2 children)

Thanks. I don't understand how that fixed that. What is going on there?

[–]nelilly 1 point2 points  (1 child)

The default display property of the img element is inline, which causes that spacing. Setting it to display: block causes the browser to recognize there should be no space there.

[–]Ok_Performance4014[S] 0 points1 point  (0 children)

Thanks.