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 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Location
    Paris, France
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Frames and Tables

    I do have a huge Table but want to keep the titles when the elevator is used ...

    I tried using frame but I am not able to synchronize the widht of cells of the title with the width of cells of the content.

    Keep in mind that the top frame has no elevator when the bottom frame has one which take a little place from the right.

    Sorry I realize that my english is not as good as it should to ask the question ... I hope that you did understand my problem and may help.

    Thanks
    [color=dark blue]Freddy Bee[/color]

  • #2
    Regular Coder
    Join Date
    Oct 2002
    Posts
    380
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I assume by elevator, you mean scrollbar. If that's true, then you can do it with two frames. The trick is to specify the two tables identically (give each cell a specific width and make sure the padding is identical). That should work without a problem. I would define a class for the table cells to specify their dimension and position properties (including margins, padding etc) and make sure the same style is used by both pages.

  • #3
    New Coder
    Join Date
    Jun 2002
    Location
    Paris, France
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Originally posted by Kiwi
    I assume by elevator, you mean scrollbar.
    Thank you Kiwi for your prompt reply.
    You are right when you guess I meant scrollbar by elevator (word that we use in french to call it).

    I did it already the way you mentioned.
    Nevertheless, the scrollbar of the frame (bottom) make my table wider than the one in the top frame.
    The reason is that I have to use percentage to be sure that the table will take all the available place whatever the size of the user sreen.

    Any comment or idea ??
    [color=dark blue]Freddy Bee[/color]

  • #4
    Regular Coder
    Join Date
    Oct 2002
    Posts
    380
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The three solutions I can think of are messy.

    One is to force a scrollbar in the top frame. This won't scroll anything -- the top window can stay fixed, but it will make the windows the same width.

    The second option is to calculate the scroll-bar width (which is tricky, because it varies from browser to broswer), and put a column at the end of your header table to hold it.

    The third is to redo the table sizes as fixed (which could cause other problems).

    There may be a trick with <thead> tag that I don't know about, but as far as I can tell, thead hasn't been implemented properly yet.


  •  

    Posting Permissions

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