HTML CSS examples for CSS Layout:Position
position div at the bottom of its container
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .parent {<!--from ww w . j a va 2 s .c om--> height:301px; border:6px solid Chartreuse; display:flex; } .child { height:41px; width:100%; background:yellow; align-self:flex-end; } </style> </head> <body> <div class="parent"> <div class="child"> Lorem ipsum dolor sit </div> </div> </body> </html>