0

enter image description here

why this div has height bigger than image ? This is what my code looks like

<div>
  <img src="source">
</div>

NOTE: I know how i fixed, am just i want to know why this happend

1 Answers1

-1

Because the size of your parent element was bigger than the div you put your image into