Thursday, 20 March 2014

show only vertical scroll in div

This will show only vertical scroll when  content height in div  will be greater than 300px.

<div style="overflow-x: hidden; overflow-y: auto; height: 300px;">
----content---
</div>