HTML CSS examples for CSS Property:padding
Left padding usage
<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>