How can I position my div at the bottom of its container?

前端 未结 24 2402
广开言路
广开言路 2020-11-22 00:46

Given the following HTML:



        
24条回答
  •  隐瞒了意图╮
    2020-11-22 01:34

    Likely not.

    Assign position:relative to #container, and then position:absolute; bottom:0; to #copyright.


    #container {
        position: relative;
    }
    #copyright {
        position: absolute;
        bottom: 0;
    }

提交回复
热议问题