How can an html element fill out 100% of the remaining screen height, using css only?

后端 未结 17 1818
名媛妹妹
名媛妹妹 2020-12-22 16:13

I have a header element and a content element:

#header
#content

I want the header to be of fixed height and the content to fill up all the

17条回答
  •  自闭症患者
    2020-12-22 17:05

    In this instance I want my main content div to be liquid height so that the whole page takes up 100% of the browser height.

    height: 100vh;

提交回复
热议问题