CSS Property Value How to - overflow-x: scroll;








Question

We would like to know how to overflow-x: scroll;.

Answer


<!--from   w  ww  .ja va2s  .c  om-->
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#two {
  border: 5px solid black;
  height: 200px;
  width: 20000px;
}

#one {
  border: 1px solid red;
  height: 200px;
  width: 200px;
  overflow-y: hidden;
  overflow-x: scroll;
}
</style>
</head>
<body>
  <div id="one">
    <div id="two"></div>
  </div>
</body>
</html>

The code above is rendered as follows: