.parent { //height: 500px; position: relative; //overflow: scroll; overflow-x: hidden; } .inner { overflow: hidden; background-color: #333; top: 0; width: 100%; }