I want to align the DIV c
in the bottom of the DIV b
not DIV a
<div id="a">
<div id="b">
<div id="c">
Div c
</div>
</div>
</div>
csshtml
I want to align the DIV c
in the bottom of the DIV b
not DIV a
<div id="a">
<div id="b">
<div id="c">
Div c
</div>
</div>
</div>
Best Answer
This should work:
The trick is
position: relative;
on the parent element. Without that,#c
will float away to the bottom of the page.