If you set the container to 100%, the container will size only to fit to 100% of the height of the contents of what's in the container div.
100vh sets the container to 100 vertical height, where vertical height is the full height of the page.
Hope this helps you understand the difference
html,
body {
min-height: 100vh;
}
.container {
height: 100%;
border:1px solid red;
}
<div class="container">
Hello<br> How are you?
</div>
html,
body {
min-height: 100vh;
}
.container {
height: 100vh;
border:1px solid red;
}
<div class="container">
Hello<br> How are you?
</div>