Log in

View Full Version : scrollin div area



brent2
02-18-2010, 06:46 PM
Hi, I used this code:
<div style="border : solid 2px #ff0000; background : #000000; color : #ffffff; padding : 4px; width : 200px; height : 50px; ">
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10<br />
</div>

to set up a scrolling div area. It works fine until i expand the width and height. It will still work perfect in IE but it stops working in Firefox. Anybody know how to fix it?

YoshiGoneMad
02-19-2010, 07:28 AM
Not quite sure what your asking.

What if you add this: overflow:auto;


<div style="border : solid 2px #ff0000; background : #000000; color : #ffffff; padding : 4px; width : 200px; height : 50px; overflow:auto;">
1<br />
2<br />
3<br />
4<br />
5<br />
6<br />
7<br />
8<br />
9<br />
10<br />
</div>


Let me know how it goes.

stevenrokz
02-19-2010, 11:18 AM
set css overflow property on : auto and it will work

<div style="width: 220px; height: 70px; overflow: auto">

<br />
<br />
<br />
<br />
<br />
<br />
</div>