Keep div at the bottom of another div - css

前端 未结 5 1116
借酒劲吻你
借酒劲吻你 2020-12-24 06:56
© 1965 - 2010

I want the #copyright to be at the bottom of #outer

Here is the css for #copyright

5条回答
  •  隐瞒了意图╮
    2020-12-24 07:26

    You may use this http://codepen.io/anon/pen/KwmMyb :

    #outer_div {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
    #inner_div {
      width: 100%;
      height: 100px;
      position: absolute;
      bottom: 0;
      margin: 0 auto;
      background: red;
    }

提交回复
热议问题