Align Div at bottom on main Div

后端 未结 5 1575
北荒
北荒 2020-12-28 14:16

I have two divs, one inside the other and I would like the small div to be aligned at the buttom of the main div.

Here\'s my code so far. Currently, the button is at

5条回答
  •  生来不讨喜
    2020-12-28 14:40

    Modify your CSS like this:

    .vertical_banner {
        border: 1px solid #E9E3DD;
        float: left;
        height: 210px;
        margin: 2px;
        padding: 4px 2px 10px 10px;
        text-align: left;
        width: 117px;
        position:relative;
    }
    
    #bottom_link{
       position:absolute;                  /* added */
       bottom:0;                           /* added */
       left:0;                           /* added */
    }

提交回复
热议问题