<!DOCTYPE html> <body> <div id="a" style="overflow:auto; width:200px"> <div style="background: green; height:100%"> </div> </div> </body>