CSS Property Value How to - overflow-y: hidden;








Question

We would like to know how to overflow-y: hidden;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
#two {<!--  ww  w .jav a 2s.c om-->
  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: