Skip to content Skip to sidebar Skip to footer

Position Div At The Bottom Of Another Div

I have a div nested inside another

Solution 1:

http://jsfiddle.net/LMeZ9/

just use clear:both

#footer{
  width:800px;
  height: 20px;
  clear:both
}

Solution 2:

You can solve this by using positioning:

#wrapper{
width:800px;
    height: 600px;
    position: relative;
    border: 1px solid #333;
}
 #left{
 float:left;
 width: 200px;
 }
#right{
  float: left;
  width: 600px;
}
#footer{
  width:800px;
  height: 20px; 
  position: absolute;
    bottom: 0;
}

Demo here.

Post a Comment for "Position Div At The Bottom Of Another Div"