w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I make a child of an absolutely positioned div stick to the bottom of it's absolutely positioned parent?

Just add position absolute in the child : http://jsfiddle.net/bUjbv/

#absoluteParent{
    width:400px;
    height:400px;
    background:crimson;
    position:absolute;
}

#stickToBottom{
    position: absolute;
    background:green;
    width: 100%;
    height:30px;
    bottom:0px;
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.