Keep div at the bottom of another div - css

前端 未结 5 1146
借酒劲吻你
借酒劲吻你 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:06

    Change the positioning on #copyright to absolute and add a relative positioning context to #outer. Then add bottom: 0px to #copyright as well.

    Sorry. CSS would look like:

    #copyright{
       position:absolute; margin-bottom:0px; width:672px; height:20px; color:#FFF; bottom: 0px;
    }
    #yr{
       margin:auto;
    }
    #f{
       position:absolute; right:0px; text-align:center;
    }
    #outer {
       position: relative;
    }
    

提交回复
热议问题