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

后端 未结 17 1822
名媛妹妹
名媛妹妹 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条回答
  •  -上瘾入骨i
    2020-12-22 17:09

    CSS PLaY | cross browser fixed header/footer/centered single column layout

    CSS Frames, version 2: Example 2, specified width | 456 Berea Street

    One important thing is that although this sounds easy, there's going to be quite a bit of ugly code going into your CSS file to get an effect like this. Unfortunately, it really is the only option.

提交回复
热议问题