Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: Table Align to table

  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    82

    Table Align to table

    Greetings all,

    Project: I'm trying to align two tables beneath a top table. Like this:

    Code:
    Top table:
    <table width="50" height="20">
    <tr><td>(A)</td></tr></table>
    
    Menu table:
    <table width="10" height="40" align="left">
    <tr><td>(B)</td></tr></table>
    
    Content table:
    <table width="40" height="40">
    <tr><td>(C)</td></tr></table>
    My problem is, that the two tables beneath doesn't align all the way to the top table. There's a small space between top table and the two others.

    I've tried almost anything, valign, vspace etc. but nothing helped.

    The tables align perfectly in Firefox - it's only in IE the problem is.

    Any one have an insight in this problem?
    Kim B. Juul
    Danish Web Design & SEO

  2. #2
    WebProWorld MVP
    Join Date
    Aug 2003
    Posts
    1,039
    Why not just use 1 table, something like:
    Code:
    <table width="50">
    <tr>
    <td colspan="2">(A)</td>
    </tr>
    <tr>
    <td width="10">(B)</td>
    <td width="40">(C)</td>
    </tr>
    </table>

  3. #3
    Member
    Join Date
    Sep 2005
    Posts
    82
    hmm ... I think you're on to something.

    I always try to keep things in order. That's why I've used several tables and in that way have more control within each block.

    This time however, I'll have to agree with you there.

    The tables of course, is a little more complicated than the stated examples - but with a little trial and error it shouldn't be much of a problem to convert them.

    Thanks for the insight
    Kim B. Juul
    Danish Web Design & SEO

  4. #4
    WebProWorld MVP
    Join Date
    Aug 2003
    Posts
    1,039
    Have you looked at using CSS and divs? I find it much easier to build layouts with them than with good old nested tables.

Similar Threads

  1. To div or to table, what would you use?
    By dharrison in forum Graphics & Design Discussion Forum
    Replies: 7
    Last Post: 11-08-2005, 06:53 AM
  2. To Table or Not to Table ...
    By WebErika in forum Graphics & Design Discussion Forum
    Replies: 16
    Last Post: 06-20-2005, 08:37 AM
  3. Table settings
    By redstarfcs in forum Graphics & Design Discussion Forum
    Replies: 2
    Last Post: 08-14-2004, 10:58 AM
  4. css vs table
    By DT in forum Graphics & Design Discussion Forum
    Replies: 7
    Last Post: 04-03-2004, 02:58 PM
  5. Do you use <div> or <table>
    By drummin in forum Graphics & Design Discussion Forum
    Replies: 3
    Last Post: 10-03-2003, 09:23 PM

Posting Permissions

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