<!DOCTYPE HTML> <html> <meta name="viewport" content="width=device-width"> <body style="height: 5000px; overflow:hidden"> <div style="display: block; margin-top: 100px; position:fixed; overflow:scroll; top: 0px; width: 50px; height: 100px"><div style="height:200px; background-color: red"></div></div> <div style="display: block; margin-top: 20px; position:relative; left: 50px; width: 50px; height: 100px; background-color: red"></div> </body> </html>