I am currently working with the code shown below. It successfully displays the first part in full height, regardless of resolution, but once I scroll to the second half, there is a large empty gap. How can I eliminate this gap and make the transition smooth (I use anchor-style to navigate to the second half)?
.first-half {height:50vh; background: red;}
.second-half {height:50vh; background: green;}
<div class="first-half">
content
</div>
<div class="second-half">
content
</div>