How do I position a div at the bottom center of the screen

前端 未结 6 1541
一生所求
一生所求 2020-12-25 11:17

I have this css:

#manipulate
{
  position:absolute;
  width:300px;
  height:300px;
  background:#063;
  bottom:0px;
  right:25%;
}

I have t

6条回答
  •  无人及你
    2020-12-25 12:09

    Here is a solution with two divs:

    HTML:

        
    

    CSS:

    #footer {
        position: fixed;
        bottom: 0;
        width: 100%;
    }
    #center {
        width: 500px;
        margin: 0 auto;
    }
    

提交回复
热议问题