I want to align the DIV c in the bottom of the DIV b not DIV a
DIV c
DIV b
DIV a
3条回答 [愿得一人] (楼主) 2021-02-06 01:00 This should work: #b { position: relative; } #c { position: absolute; bottom: 0px; } The trick is position: relative; on the parent element. Without that, #c will float away to the bottom of the page. 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
This should work:
#b { position: relative; } #c { position: absolute; bottom: 0px; }
The trick is position: relative; on the parent element. Without that, #c will float away to the bottom of the page.
position: relative;
#c