<!DOCTYPE html>
<html lang="en-US">
<head>
<style>
div{
width:150px;
height:50px;
font-size:17px;
white-space:nowrap;
border:1px solid #8c8c8c;
margin:10px;
}
div:nth-child(2){
overflow-x:scroll;
}
div:nth-child(4){
overflow-x:hidden;
}
div:nth-child(6){
overflow-x:auto;
}
div:nth-child(8){
overflow-x:visible;
}
</style>
</head>
<body>
<h2>overflow-x: scroll;</h2>
<div>
This div contains lots of text, but the height of this div is 50px, whereas, width of this div is 150px.
</div>
<h2>overflow-x: hidden;</h2>
<div>
This div contains lots of text, but the height of this div is 50px, whereas, width of this div is 150px.
</div>
<h2>overflow-x: auto;</h2>
<div>
Add few text Here.
</div>
<h2>overflow-x: visible;</h2>
<div>
This div contains lots of text, but the height of this div is 50px, whereas, width of this div is 150px.
</div> </body>
</html>