View Single Post
  #6 (permalink)  
Old 01-14-09, 10:05 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
The horizontal scrollbar will appear when it is needed. To force one to show (it will show, but still disabled if it is not needed):
Code:
<div style="width: 190px;height: 250px;overflow-x:scroll;overflow-y:auto;">
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
<p>text here! text here! text here! text here!</p>
</div>
Please note that overflow-x and overflow-y are not official W3C, but will work with most browsers
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Reply With Quote