<html> <head> <style> div.test { width: 530px; height: 500px; background-color: black; } div.cover { width: 500px; height: 500px; background-color: black; position: absolute; margin-top: 0px; margin-left: 30px; } </style> <body> <div class="test"> </div> </body> </html>