Could someone explain why there is a vertical separation between the div and the image?
<div style="height: 100vh; display: inline-block;width: 50%; background-color: blue">TEST
</div><!--
--><img src="photos/openening.jpg" alt="SICK SHOT" style="height:100vh; display: inline-block; width: 50%; object-fit:cover;">
When I view the website, it appears like this:
Image
(I used a black image for this example.)
If you can explain why this happens, could you also provide a solution to make both elements start at the same height? I would like it to resemble the layout of this website:
petermckinnon
I am open to alternative suggestions as well.