Results 1 to 3 of 3

Thread: scrollin div area

  1. #1
    Join Date
    Feb 2010
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default scrollin div area

    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?

  2. #2
    Join Date
    Jan 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Not quite sure what your asking.

    What if you add this: overflow:auto;
    Code:
    <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.

  3. #3
    Join Date
    Feb 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •