Make a div stick to bottom of parent

前端 未结 2 2046
梦谈多话
梦谈多话 2021-02-03 22:04

I am trying to create a layout here which looks like the following: Here\'s the fiddle


    
相关标签:
2条回答
  • 2021-02-03 22:37

    If I understand correctly then one way to do it would be to put [steam content] outside the wrapper, as wrapper is the one that is keeping the footer at the bottom. If you must have the [steam content] inside wrapper than you can try something like this http://ryanfait.com/sticky-footer/ to keep it at the bottom together with the footer

    0 讨论(0)
  • 2021-02-03 22:58

    Add position:relative to your wraper class. Add position:absolute;bottom:0; to the stream-content class.

    Check it here. Fiddle

    0 讨论(0)
提交回复
热议问题