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

后端 未结 10 999
陌清茗
陌清茗 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:48

    Working and tested on:
    Google Chrome
    Safari
    Opera
    Internet Explorer
    Firefox

    EDITED CODE (added overflow:auto; to #aside and #Article to fix the overflow)

    
        
          
            
          
          
            
            
    Article
    Aside

    PS: Background colors are illustrative, thus the css can me more compact by avoiding repeated attributes!

提交回复
热议问题