Make A div 100% cover page with margins - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Div

Description

Make A div 100% cover page with 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. ja  v  a  2  s.co  m-->
   background:pink;
   margin:41px;
}

.contenuWorks {
   left:41px;
   right:41px;
   top:41px;
   bottom:41px;
   background:red;
   position:absolute;
}
</style> 
 </head> 
 <body> 
  <div class="contenuWorks"> 
  </div>  
 </body>
</html>

Related Tutorials