inserting a cell into a table layout causes the tableheight to increase

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default inserting a cell into a table layout causes the tableheight to increase

    Hello and a merry Xmas to all from Spain !

    I will apologise in advance for my question, but i havent been able to find
    the answer anywhere (i suspect it is very easy) and it is driving me Loco. I am
    a newbie to Dreamweaver.

    I have a very simple page layout with essentially three tables in the centre
    of the page for my template. Left hand table for a menu, centre table for
    content, and a right hand table for ads. My problem is that i want to use cells
    for a very simple static menu layout, however when i insert more than 1 cell 1
    under another, the laft hand table increases its height size by the height size
    of the inserted cell.
    This then throws the layout out and causes me all sorts of problems.
    My hopefully very simple question therefore is how can i insert cells into a
    layout table without increasing the size of the layout table.
    Many thanks in advance.

    sittinginthesun Guest

  2. Similar Questions and Discussions

    1. table layout
      this is probably just a simple one, but i'm a simple person, so here goes................ i've created a small table in dm8 to display some...
    2. Inserting pages throws off layout - Indesign CS
      I'm working on a 60-page document in Indesign CS (Pagemaker edition with plug-in pack). Whenever I insert a new page in the document, it throws off...
    3. Can You insert just a cell in a table?
      I have a table 8 rows and 8 columns. Each cell has a number. If I want to insert a new cell and move everything along a cell is this possible? ...
    4. Table cell width
      I've programatically built a table. Some cells in the table have tables inside them. The ones that have tables inside have the correct width,...
    5. Using a rollover to kick off a flash in a different table/table cell
      What I'd like to do but don't know if possible through Dreamweaver is the following: The web page has multiple tables. Use a rollover function...
  3. #2

    Default Re: inserting a cell into a table layout causes the table height to increase

    You cannot. That's how tables work. Add more content and the table expands
    vertically to hold it. What you can do is to make the alignment of the cell
    that is expanding set its contents right at the top with the CSS style -

    vertical-align:top;

    or with the HTML attribute 'valign="top"'

    You would put the former into your stylesheet, in a rule for that particular
    cell, and the latter directly into the <td> tag for the cell itself, e.g.,

    <td valign="top"....

    If more than one cell is involved in this expansion, then just read this -

    I believe the problem you are having can be simplified if you consider this
    example -

    Put a 2 row by 2 column table on the page. Merge the two right hand cells
    into a single column. Put an image into each left cell, and you will see
    that they merge vertically seamlessly. Now begin to add content to the
    merged cell on the right and you will see that at some point you will have
    forced the two left cells to begin to split apart vertically. The more
    content you add to the right, the further apart the two left cells will get.
    See what I mean?

    To solve the problem, instead of making your page sit in a single table,
    have it in several nested tables. You should be able to put a two column
    table on the page with a nested table in each column. Put your navigation
    in the left nested table, and the
    content in the right nested table. Now, changes to either of the inner
    table's
    structure will not affect either of the inner nested tables.



    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "sittinginthesun" <webforumsuser@macromedia.com> wrote in message
    news:dogg2e$iib$1@forums.macromedia.com...
    > Hello and a merry Xmas to all from Spain !
    >
    > I will apologise in advance for my question, but i havent been able to
    > find
    > the answer anywhere (i suspect it is very easy) and it is driving me Loco.
    > I am
    > a newbie to Dreamweaver.
    >
    > I have a very simple page layout with essentially three tables in the
    > centre
    > of the page for my template. Left hand table for a menu, centre table for
    > content, and a right hand table for ads. My problem is that i want to use
    > cells
    > for a very simple static menu layout, however when i insert more than 1
    > cell 1
    > under another, the laft hand table increases its height size by the height
    > size
    > of the inserted cell.
    > This then throws the layout out and causes me all sorts of problems.
    > My hopefully very simple question therefore is how can i insert cells into
    > a
    > layout table without increasing the size of the layout table.
    > Many thanks in advance.
    >

    Murray *TMM* Guest

  4. #3

    Default Re: inserting a cell into a table layout causes thetable height to increase

    Ok thanks that worked a treat. I now understand the concept. Still seems strange that you cannot fix the size of a table so that it doesnt keep increasing its size.
    Many thanks though.
    sittinginthesun Guest

  5. #4

    Default Re: inserting a cell into a table layout causes the table height to increase

    > Still seems strange that you cannot fix the size of a table so that it
    > doesnt keep increasing its size.
    Study more HTML. That's how tables work.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "sittinginthesun" <webforumsuser@macromedia.com> wrote in message
    news:dotts4$fin$1@forums.macromedia.com...
    > Ok thanks that worked a treat. I now understand the concept. Still seems
    > strange that you cannot fix the size of a table so that it doesnt keep
    > increasing its size.
    > Many thanks though.

    Murray *TMM* Guest

  6. #5

    Default Re: inserting a cell into a table layout causes thetable height to increase

    You can constrain the height of your table to whatever number of pixels, then
    add a vertical scroller. I usually use a div element inside the cell to control
    everything.

    <td width="171" valign="top"><div style="overflow:auto; height:200px;">Insert
    a ton of text here</div></td>

    Set the height to match your left column. Then you can keep the layout and
    scroll extra copy.

    It depends on what content you are really trying to add, you may consider
    simply creating two tables, the first is you main area, 1 row x 3 columns, then
    a <br> tag, then a table 1x1 with footer information. You may want to discuss
    what the purpose of adding a your cell is for.

    WickedSense Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139