View Single Post
  #6 (permalink)  
Old 01-14-09, 09:05 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Community VIP
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 675
Thanks: 0
Thanked 0 Times in 0 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
Reply With Quote