Responsive web design and fixed margins - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Responsive web design and fixed margins

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">
body {<!-- w ww  . j  av  a2s .c o m-->
   height:451px;
}

.main {
   height:100%;
   background-color:Chartreuse;
   padding:81px;
   border-sizing:border-box;
}

.resizable {
   background-color:yellow;
   border:3px solid blue;
   border-radius:16px;
   height:100%;
}
</style> 
 </head> 
 <body> 
  <div class="main"> 
   <div class="resizable"></div> 
  </div>  
 </body>
</html>

Related Tutorials