Without using position: absolute
, you'd have to vertically align it.
You can use vertical-align: bottom
which, according to the docs:
The vertical-align CSS property specifies the vertical alignment of an inline or table-cell box.
So, either set the outer div as an inline element, or as a table-cell
:
#outer {
height: 200px;
width: 200px;
border: 1px solid red;
display: table-cell;
vertical-align: bottom;
}
#inner {
border: 1px solid green;
height: 50px;
}