Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 15 of 15
  1. #1
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Scroll in a td ???

    Hi !
    Is there a way to have a scroll bar in a table cell ?
    I have tried to limit the cell height, but it does not seem to help.
    The tag "scrolling=yes" like for frames does not seem to work either...

    (I want to have a table with 3 rows, total height =100%. Top and bottom rows always visible, no matter how long the content in the middle row is => scroll bar in middle row)


    Any idea ?

    Tks a lot
    Fred

  • #2
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    style="overflow: scroll;"

  • #3
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts

    mmmh ?

    well, thanks, .....
    but I do not get it...

    Where should I write this. In the cell definition tag ?
    <td valign="top" style="overflow: scroll;">

    Fred.

  • #4
    Regular Coder
    Join Date
    Jun 2002
    Location
    Newcastle, England
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts
    'overflow' is a CSS2 property. Does your browser support this?

    patrick

  • #5
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I don't know if my browser supports this, but does it matter? If I programm a site, it's not only for my personnal use, but should be viewable with every browser....

    Any solution to my problem within the HTML limits ?

    Fred

  • #6
    Regular Coder
    Join Date
    Jun 2002
    Location
    United Kingdom Confused: Often
    Posts
    859
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by no way
    [B]Any solution to my problem within the HTML limits?
    html on its own? nope. you wont get this to work in every browser like you said you wanted to, you could use an iframe if you want scrollable content, even then not every browser supports them.
    redhead

  • #7
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thank you...



    I guess Santa Claus is not coming to me this time...

    Fred.

  • #8
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Anything in JS maybe ?
    The thing is: I'm a beginner, but I've already heard frames are stone age. Not sure I should begin with something that will be ridiculous at the end anyway....
    F.

  • #9
    Regular Coder
    Join Date
    Sep 2002
    Location
    Louisiana
    Posts
    576
    Thanks
    0
    Thanked 0 Times in 0 Posts
    just use an iframe, if it is just for your personal use.
    javascript can't do this.

  • #10
    Senior Coder
    Join Date
    Jul 2002
    Posts
    1,628
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: mmmh ?

    Originally posted by no way
    well, thanks, .....
    but I do not get it...

    Where should I write this. In the cell definition tag ?
    <td valign="top" style="overflow: scroll;">

    Fred.
    yep

    Moderator: General web building

    Get out from under them, resist and multiply.
    Get out from under precipice and see the sky.

  • #11
    jkd
    jkd is offline
    Senior Coder jkd's Avatar
    Join Date
    May 2002
    Location
    metro DC
    Posts
    3,163
    Thanks
    1
    Thanked 18 Times in 18 Posts
    overflow: scroll;

    is fine for IE5+ (Win or Mac), NS6+ (and all Mozilla derivatives), Opera 5+, and probably Konqueror too.

    I don't see the compatibility problem.

  • #12
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I have tried, still not better. I really feel stupid... can one of you guys have a look at the coding and tell me what's wrong ?
    I have used <td valign="top" style="overflow: scroll;"> as advised.

    http://www.geocities.com/verybadpage/page3.html

    Tks a lot again
    Fred

  • #13
    New Coder
    Join Date
    Sep 2002
    Location
    Moncton, N.B., Canada
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The overflow attribute does not work for the td tag. Just rap your content in that cell around a div tag, like so:

    <td>
    <div style="overflow: auto; height: 450px;">
    your content
    </div>
    </td>

    You have to give the div a height also. When the content reaches your pre-defined height limit it will add the scroll bar.

    - Terry

  • #14
    New Coder
    Join Date
    Jan 2003
    Location
    1st floor, 3rd door on the right side
    Posts
    77
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Hey Terry, you're the best !!!

    I could kiss you if my girl wouldn't be jealous ;-)

    Tks a lot
    Fred

  • #15
    New Coder
    Join Date
    Sep 2002
    Location
    Moncton, N.B., Canada
    Posts
    69
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey no prob Fred
    but I think I'll pass on the smooch....
    I'm a dude


  •  

    Posting Permissions

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