<!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> <style> html, body { background: green; margin: 0; padding: 0; } .invalid { margin-top: 350px; height: 500px; background: red; display: block; } </style> </head> <body> <div class="invalid"> </div> </body> </html>