CSS - Centering a page - then making the page 100% height

后端 未结 6 2050
名媛妹妹
名媛妹妹 2021-02-06 08:31

I\'m trying to center a page and then make it 100% in height. I have a div called \"content\" as the parent element of all elements in the HTML page. What do I need

6条回答
  •  我寻月下人不归
    2021-02-06 09:06

    This should do it better.
    No extra markup and/or id. No need for javascript and/or expression in css.
    Should work fine on all browsers.

    
    

提交回复
热议问题