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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Scrolling table inside an iframe?

    I have a table that I need to scroll without the headers moving. So I made two seperate tables, with the headers in one and the body in another. I put the bottom table in a div and I make it scroll. The problem is, this table is in an iframe, and I dont want the scrollbar on the iframe so I set it to scrolling="no". But instead of the table taking up the iframe and the rest of it scrolling, the table runs off the iframe with no scrollbar. If I set my table div to a specific height, like 200px, it will work fine, but I need it to take up the entire iframe, as in height=100%. Any ideas?

  • #2
    New Coder
    Join Date
    Mar 2006
    Location
    São Paulo, Brazil
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    show your code for us, it will give me a better idea of what you really want.
    ----
    As coisas mais simples são as mais importantes.
    ---------
    Thompson M1A1: D-Day
    ----------------

  • #3
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts

  • #4
    New to the CF scene
    Join Date
    Mar 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Got it working

    I got it working by using javascript to dynamically getting the iframe visible height and settting my div to that height. So its a workaround, but I never figured out why setting the height to 100% would cause the content to go out of sight instead of getting a scroll bar. Thanks for the replies.
    John

  • #5
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

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