View Full Version : how to add scrol bars in div tag
o0O0o.o0O0o
06-04-2008, 07:37 AM
hi ,
i have a DIV box , but when the content is more than the width specified
i want to add scroll bars. Any ideas
rangana
06-04-2008, 07:47 AM
You should be able to fiddle on CSS overflow property (http://www.w3schools.com/Css/pr_pos_overflow.asp) ;)
oldcrazylegs
06-04-2008, 10:31 PM
below is an example. when the content inside of the div tag pair exceeds the width and height you set then the overflow rule makes the scrollbars automatically appear. change 200px to whatever you want it to be.
<div style="height:200px; width:200px; overflow:auto;"></div>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.