Floating divs for responsive website - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Floating divs for responsive website

Demo Code

ResultView the demo in separate window

<html lang="en">
 <head> 
  <title>Lorem ipsum d</title> 
  <style>
* {<!--   ww w  .ja  v  a2  s.  co m-->
   box-sizing:border-box;
}

.one {
   width:24%;
   float:left;
   background-color:Chartreuse;
}

.two {
   width:77%;
   float:left;
   background-color:yellow;
}

.three {
   float:left;
   width:24%;
   background-color:blue;
}
</style> 
 </head> 
 <body translate="no"> 
  <div class="one">
    Lorem i 
  </div> 
  <div class="two">
    Lorem i 
  </div> 
  <div class="three">
    Lorem i 
  </div>  
 </body>
</html>

Related Tutorials