By applying style to DIV element we can achieve this.
We can use "overflow" property of style.
Overflow property has different values like auto , hidden , scroll, visible
Here are example for this.
Example :
Output:
Here overflow:auto means scroll is only visible when needed.
We can use "overflow" property of style.
Overflow property has different values like auto , hidden , scroll, visible
Here are example for this.
Example :
<div style="height: 50px; overflow: auto; width: 100px">
vb.net<br />
c#.net<br />
SQL SERVER<br />
JAVA<br />
JAVA Script<br />
LINQ<br />
MVC<br />
Silver Light<br />
Oracle<br />
</div>
vb.net<br />
c#.net<br />
SQL SERVER<br />
JAVA<br />
JAVA Script<br />
LINQ<br />
MVC<br />
Silver Light<br />
Oracle<br />
</div>
Output:
vb.net
c#.net
SQL SERVER
JAVA
JAVA Script
LINQ
MVC
Silver Light
Oracle
c#.net
SQL SERVER
JAVA
JAVA Script
LINQ
MVC
Silver Light
Oracle
Here overflow:auto means scroll is only visible when needed.
No comments:
Post a Comment