0

I have a parent element with 100vh height, and some content. I want the last element to fill to the bottom of the parent. Can this be achieved with css?

<div style="height:100vh">
   <h1 style="margin-top:100px;">MY TITLE</h1>
   <p>some text</p>
   <a class="button">my button</a>
   <a class="button">my button</a>
   <div style="background-color:blue;color:white;">fillToBottom</div>
</div>
Andrew
  • 379
  • 1
  • 2
  • 13

1 Answers1

-1

Yes I think you just need to set a width to 100% and a height for the second div ;)

andrea06590
  • 1,259
  • 3
  • 10
  • 22