Boxes Structure for three div - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Box

Description

Boxes Structure for three div

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#services1 {<!--from   ww w.j a v a  2  s  . co m-->
   float:left;
   width:34%;
   padding:100px 0px 0px 0px;
   text-align:center;
   background-color:Chartreuse;
   height:401px;
}

#services2 {
   float:left;
   width:34%;
   padding:81px 0px 0px 0px;
   text-align:center;
   background-color:yellow;
   height:401px;
}

#services3 {
   float:left;
   width:34%;
   padding:81px 0px 0px 0px;
   text-align:center;
   background-color:blue;
   height:401px;
}

#services1, #services2, #services3 {
   box-sizing:border-box;
}
</style> 
 </head> 
 <body> 
  <div id="services1"></div> 
  <div id="services2"></div> 
  <div id="services3"></div>  
 </body>
</html>

Related Tutorials