<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <style type="text/css"> div{ border: solid; width: 200px; height: 200px; padding-top:20px; padding-left: 50px; } #div2{ margin-left: 20px ; margin-top: 40px; } </style> <body> <div>div1</div> <div id="div2">div2</div> </body> </html>