make two vertical columns floating left and right - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:2 Column

Description

make two vertical columns floating left and right

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <style>

.container {<!--  www .  j  a  v  a 2  s .  c  om-->
   width:100%;
   margin: 200px 0 40px;
}
.col {
   float:left;
   width: 300px;
   height: 350px;
   background:blue;
}
.col:last-child {
   float:right;
   background: red;
}

      </style> 
 </head> 
 <body> 
  <div class="container"> 
   <div class="col" id="hamburgerh"></div> 
   <div class="col" id="tacoh"></div> 
  </div>  
 </body>
</html>

Related Tutorials