Making a footer not rise above the bottom of the screen without extraneous markup

后端 未结 10 974
陌清茗
陌清茗 2021-02-01 09:06

If you only had to worry about Firefox and Webkit browsers, what CSS would you use to make the footer in the following HTML not rise above the bottom or the screen (and go lower

10条回答
  •  走了就别回头了
    2021-02-01 09:40

    I think you're talking about the margin of 10-15 pixels below the footer. Try adding this code to your CSS;

    body { margin-bottom:0px; }
    

    The body has a default margin of 10-15 pixels so in order to remove it to flush your design to the top or bottom you have to tell the body to have a margin of zero.

    Hope that helps.

提交回复
热议问题