Why does an iframe add extra space under its element? Look at this weird behavior:
The iframe element is an inline element. One way of fixing the spacing issue is adding display: block, but you can also fix it by simply adding vertical-align: bottom; to the iframe element.
iframe
display: block
vertical-align: bottom;