I'm trying to align a child div tag to the bottom or baseline of the parent div tag.
All I want to do is have the child Div at the baseline of the Parent Div, here is what it looks like now:
HTML
<div id="parentDiv">
<div class="childDiv"></div>
</div>
CSS
#parentDiv
{
width:300px;
height:300px;
background-color:#ccc;
background-repeat:repeat
}
#parentDiv .childDiv
{
height:100px;
width:30px;
background-color:#999;
}
Note
I will have multiple childDiv
s with varying heights, and I'll need them all to align to the baseline/bottom.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…