Streaming live at 10am (PST)

How do i get div to cover the remaining viewport

Hello,

I am trying to get a div to cover the remaining viewport minus the size of my navbar so basically i would like it to be something like 100vh - 125px (size of my nav bar) this is so i can align text to be between the nav bar and the bottom of the screen, i have looked online and found nothing.

Many thanks
Riduwan

You can wrap both inside a flex div, make the navbar “don’t Shrink” and make the other div expand so it will take up the available width. Let me know if this works. There are also other options

1 Like

Thanks it worked :smiley:

1 Like