<!DOCTYPE html> <html> <body> <div style="overflow-x:hidden"> <div id="testdiv" style="width:200px;margin-top:50px;height:10px;background-color:green"></div> </div> </body> </html>