Web.QHMIT
.com
Toggle navigation
☰
Home
HTML
CSS
Scripting
Database
Run
<!DOCTYPE html> <title>My Example</title> <div style="border:1px solid black;height:100px;width:140px;overflow-y:hidden;overflow-x:scroll;"> <p style="width:250%;"> By using overflow-x, we can create scroll bars when the contents of this div are wider than the container. By setting this paragraph to 200 percent, it is 200 percent wider than the parent container - forcing an overflow. </p> </div>
Preview