HTML/CSS/CSS Attributes and Javascript Style Properties/overflow y

Материал из Web эксперт
Перейти к: навигация, поиск

"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>