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 6 of 6
  1. #1
    Regular Coder
    Join Date
    Feb 2004
    Location
    Florida, USA
    Posts
    275
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Scrolling Inside Of An HTML Table?

    Hey, Just had a quick question... is there any way to scroll text inside of a table?

    http://blacklab.tk
    so you get an idea of what im going for,

    first off, yeah, the banners are bad, but they won't be there once the site is up, the thing is, that center "main" page is ok only because the page does not exceed the space, however, the pages i wil be making as i complete the site, will require more space then that.

    if tables can't scroll, then any ideas on how to make the page work?

    each frame is composed of a page that has a 6a6a6a backgorund and a table with red borders and black backgrounds...

    im not in love with the setup, but i do want to keep the layout,

    Please help
    Psycho

  • #2
    Regular Coder
    Join Date
    Dec 2002
    Location
    Seattle, WA
    Posts
    116
    Thanks
    1
    Thanked 0 Times in 0 Posts
    iframes are pretty good for that. They're just little floating frames that point to another file.

    <iframe src="innerText.htm" width="xx" height="xx">

    There are a lot more attributes and I'm not even sure if I got those right so I would recommend looking up iframes on webmonkey or w3schools.

  • #3
    Senior Coder
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    1,963
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Iframes bring a whole other set of issues with them.
    I'd use a fixed height <div> and set its overflow property to "scroll".
    Although if you put a <div> inside a table cell you are nesting body level elements inside each other, which ain't too good
    I'd ditch the tables entirely, but then again, who wouldn't

    Andrew

    I take no responsibility for the above nonsense.


    Left Justified

  • #4
    Regular Coder
    Join Date
    Dec 2002
    Location
    Seattle, WA
    Posts
    116
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Ahh very interesting. Didn't realize you could get the same effect with a div. I'll have to keep that in mind.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Code:
    tbody { max-height:15em; overflow:scroll; }
    Is the correct way of doing it. But that only works in mozilla. See Fixed table head - scrollable table body
    "Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark

  • #6
    Regular Coder
    Join Date
    Feb 2004
    Location
    Florida, USA
    Posts
    275
    Thanks
    0
    Thanked 0 Times in 0 Posts
    BROTHERCAKE!!! OMG!!! THANK YOU!!!

    Its not the one you sugested, but that post a lil before the end helped alot!

    It may not have been what that guy needed, bt its exactly what i wanted

    Thanks again
    Psycho


  •  

    Posting Permissions

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