Menu
×
×
Correct!
Exercise:Add a horizontal scrollbar to <div>. Hint: Use the overflow-x property. |
Edit This Code:
x
<html> <head> <style> div { background-color: #eee; width: 150px; height: 70px; border: 1px dotted black; white-space: nowrap; } </style> </head> <body> <div> <p>In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since.</p> </div> </body> <!-- Mirrored from www.w3schools.com/css/exercise.asp?filename=exercise_overflow3 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:17:01 GMT --> </html> Result:
|
Correct Code:
xxxxxxxxxx Result:
|