'overflow-y' Example : overflow y « CSS « HTML / CSS






'overflow-y' Example

    
<html>
<body>
<div style="overflow-y:auto;
            background-color:#ccccff; 
            width:200; 
            height:50">
This div element has an overflow-y property value of auto.
This div element has an overflow-y property value of auto.
This div element has an overflow-y property value of auto.
This div element has an overflow-y property value of auto.
This div element has an overflow-y property value of auto.
</div>

<div style="overflow-y:scroll;
            background-color:#ffffcc; 
            width:200; 
            height:50">
This div element has an overflow-y property value of scroll.
This div element has an overflow-y property value of scroll.
This div element has an overflow-y property value of scroll.
This div element has an overflow-y property value of scroll.
This div element has an overflow-y property value of scroll.
</div>
</body>
</html>
    
      
      








Related examples in the same category