CSS Layout Help - Stretch div to bottom of page

后端 未结 3 1838
天命终不由人
天命终不由人 2020-12-16 13:57

I\'m trying to create a layout with a \'header\' area which contains a logo and some links, and then a content area which needs to extend to the bottom of the page. This is

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-16 14:27

    Make the container div position:relative and the content div position:absolute. Then give the content div top:

    and bottom:0

    Not in a position to test this right now, but I think something like this should work.

提交回复
热议问题