SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Addict SunnaH's Avatar
    Join Date
    Aug 2005
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Aligning Data Table Cells

    I ave been working on this for a long time and I am frustrated. May be it just cannot be done and I should give up? But I wanted to ask first here before I do. I am trying to line up two tables so it gives the illusion of a single table. Not only is this not happening but I am getting different results with IE6, IE7, and FF. An am basically trying to make a table with a fixed header which scrollable. Can someone shed some light on this matter please? Thanks.

    http://www.stc.org/_private/stcmembers/sd_data01.asp
    -=SunnaH=-

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The only way to line up two table like this is to use the fixed layout algorithm, which doesn't depend on the contents of the table cells.

    You'd have to specify a width (other than auto) for the entire table, plus a width for each column (can be done via <col> tags). Then you need to specify table-layout:fixed in the CSS for both tables.

    There are still no guarantees, but at least you should have a better chance of lining things up.

    (BTW, the page is a real mess in Opera 9, with a couple of buttons on top of the table data.)
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Wizard
    Join Date
    Jul 2003
    Location
    Kent
    Posts
    1,921
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Why not just make one table which is scrollable???

    http://www.google.co.uk/search?q=scr...ient=firefox-a

  4. #4
    SitePoint Member
    Join Date
    Oct 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could use CSS to fix the width of each cell. You've also got to take into account the scroll bar - that is reducing the available space for your table to expand into

  5. #5
    SitePoint Addict SunnaH's Avatar
    Join Date
    Aug 2005
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy

    I'm sorry people but this is one battle that I am going to have to surrender. I got as far as I am getting before I shoot myself. It looks slightly different in IE5.5, IE6, IE7, Opera does not even support scrollable tables, and FF. Plus I need it to print fine too. In addition I code for xhtml trans. validation and I do not even think about what this is going to do. Thanks everyone.

    http://www.stc.org/_private/stcmembers/st.asp
    -=SunnaH=-

  6. #6
    SitePoint Addict SunnaH's Avatar
    Join Date
    Aug 2005
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Please I would not want anyone using their valuable time on this any longer. Thanks.
    -=SunnaH=-


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
  •