Div boxes positioning right - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Position

Description

Div boxes positioning right

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem</title> 
  <style>
div.navigation<!--from www .j  ava2 s .  c  o m-->
 {
   margin-top:0px;
   text-align:center;
   border:2px solid Chartreuse;
   float:left;
   width:161px;
   padding:6px;
}

div.main
 {
   margin-top:0px;
   float:left;
   border:2px solid yellow;
   margin-left:195px;
   padding:6px;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="navigation"></div> 
  <div class="main"></div>  
 </body>
</html>

Related Tutorials