<!DOCTYPE HTML> <html><head> <style> #s { position: absolute; top: 20px; left: 20px; display: block; width: 400px; height: 150px; } #p { background-color: black; width: 400px; height: 150px; position: absolute; top: 270px; left: 20px; } </style> </head> <body> <input type="file" id="s" /> <div id="p"> </div> </body> </html>