Left padding usage - HTML CSS CSS Property

HTML CSS examples for CSS Property:padding

Description

Left padding usage

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
 </head> <!--from  w w  w .ja  v  a 2 s.co  m-->
 <body> 
  <div style="position: fixed; width:100%; height:100%; background-color: yellow;"> 
   <div style="position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin-top:-32px; margin-left:-32px; background-color: red"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials