Div positioning, two div stack to have the same height with right tall one - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

Div positioning, two div stack to have the same height with right tall one

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <title>Lorem ipsum dol</title> 
  <style type="text/css">
#div1<!-- w  w w . j a  v a2s.co  m-->
 {
   position:absolute;
   top:26px;
   left:26px;
   height:201px;
   width:201px;
   border:2px solid Chartreuse;
}

#div2
 {
   position:absolute;
   top:251px;
   left:26px;
   height:201px;
   width:201px;
   border:2px solid yellow;
}

#div3
 {
   position:absolute;
   top:26px;
   left:251px;
   height:426px;
   width:301px;
   border:2px solid blue;
}
</style> 
 </head> 
 <body> 
  <div id="div1"></div> 
  <div id="div2"></div> 
  <div id="div3"></div>  
 </body>
</html>

Related Tutorials