Home » News » Align DIV to bottom of page using CSS  

Align DIV to bottom of page using CSS


Filed under News

his example will align a Div to bottom or baselineusing CSS property position:absolute; bottom:0;

The CSS part

#parentDiv
{
  position:relative;
}
#parentDiv .childDiv
{
  position:absolute;
  bottom:0;
}

The HTML part

<div id="parentDiv">
  <div class="childDiv"></div>
</div>
Tags:

Posts you may like: