Tables automatically resizes

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Tables automatically resizes

    I am using a nested table to control different elements of my layout.
    The problem I have is that I create the outer table and set the size
    properties to what I want them to be, then, if I put another table
    into the first cell, when I resize that nested table, it automatically
    resizes the other cells also. If I do the same type of thing in
    Dreamweaver, this doesn't happen. Is there a setting of some sort in
    ..NET that I can turn off to prevent this from happening?

    Here is the html code for the table. Sorry about the formatting.
    It is the tblMenuBar table, that when I resize it, vertically, resizes
    the other cells in the outer table.


    <body class="BasePage" bottomMargin="0" leftMargin="0" topMargin="0"
    rightMargin="0">
    <form id="frmLogin" method="post" runat="server">
    <TABLE id="tblBase" height="100%" cellSpacing="0" cols="4"
    cellPadding="0" width="1000" border="0">
    <TR>
    <TD class="MenuBar" width="177" rowSpan="3">
    <TABLE id="tblMenuBar" height="100%" cellSpacing="1"
    cellPadding="1" width="177" border="1">
    <TR>
    <TD height="50" width="100%">
    <asp:HyperLink id="HyperLink1"
    runat="server">HyperLink</asp:HyperLink></TD>
    </TR>
    </TABLE>
    </TD>
    <td class="FormSpacer" width="22" bgColor="#ffffff"
    rowSpan="3"></td>
    <td class="PageHeader" vAlign="top" align="middle" width="601"
    style="HEIGHT: 0.64in">
    <uc1:pageheader id="PageHeader" runat="server"></uc1:pageheader>
    </td>
    <td class="FormSpacer" width="200" rowSpan="3"></td>
    </TR>
    <TR>
    <TD class="WorkSpace" vAlign="top">
    <div align="center">
    <asp:hyperlink id="hplSecureSession" runat="server"
    NavigateUrl="https://statslink.streck.com/">Click here for SECURE
    INTERNET SESSION</asp:hyperlink>
    </div>
    <DIV align="center" class="WorkSpace" noWrap>
    </DIV>
    </TD>
    </TR>
    <TR>
    <td class="PageFooter" height="50">
    <uc1:pagefooter id="PageFooter" runat="server"></uc1:pagefooter>
    </td>
    </TR>
    </TABLE>
    </form>
    </body>

    Thank you!
    Kalvin
    Kalvin Guest

  2. Similar Questions and Discussions

    1. Absolute positioning resizes incorrectly
      I have an ASPX page that contains an HTML table. Inside one table cell I have either a panel containing 20 placeholders or simply 20 placeholders...
    2. Automatically generate formatted tables InDesign
      Hello, I am a total InDesign newbie, and would like to know if what I need done can either be done, or be scripted to do. Background: We have a...
    3. Vector Cast Member Resizes Itself
      I had problem with a vector shape cast member recently on a CD-ROM project I finished. I tested this thing on both my Mac and my PC, both of which...
    4. text field that resizes as you type?
      > So could flash make a text box that is one line wide and one line high, then when you type it grows in height not Your advice would be very...
  3. #2

    Default Re: Tables automatically resizes

    Give tblBase a specific height of 50.

    Give tblMenuBar a specific height of 50, as well as the first cell in the
    first row of tblMenuBar; give it a height of 50 too.

    In fact, for anything that shouldn't be taller than 50 pixels, give anything
    involved in it a hard-coded height of 50.

    Avoid putting anything taller than 50 pixes in the cells of tblMenuBar.

    This may or may not fix your problem, but it's good practice to be very
    specific with tables when you need them to behave in a precise manner.

    "Kalvin" <ktuel@streck.com> wrote in message
    news:879688dc.0308081113.2fa335b3@posting.google.c om...
    > I am using a nested table to control different elements of my layout.
    > The problem I have is that I create the outer table and set the size
    > properties to what I want them to be, then, if I put another table
    > into the first cell, when I resize that nested table, it automatically
    > resizes the other cells also. If I do the same type of thing in
    > Dreamweaver, this doesn't happen. Is there a setting of some sort in
    > .NET that I can turn off to prevent this from happening?
    >
    > Here is the html code for the table. Sorry about the formatting.
    > It is the tblMenuBar table, that when I resize it, vertically, resizes
    > the other cells in the outer table.
    >
    >
    > <body class="BasePage" bottomMargin="0" leftMargin="0" topMargin="0"
    > rightMargin="0">
    > <form id="frmLogin" method="post" runat="server">
    > <TABLE id="tblBase" height="100%" cellSpacing="0" cols="4"
    > cellPadding="0" width="1000" border="0">
    > <TR>
    > <TD class="MenuBar" width="177" rowSpan="3">
    > <TABLE id="tblMenuBar" height="100%" cellSpacing="1"
    > cellPadding="1" width="177" border="1">
    > <TR>
    > <TD height="50" width="100%">
    > <asp:HyperLink id="HyperLink1"
    > runat="server">HyperLink</asp:HyperLink></TD>
    > </TR>
    > </TABLE>
    > </TD>
    > <td class="FormSpacer" width="22" bgColor="#ffffff"
    > rowSpan="3"></td>
    > <td class="PageHeader" vAlign="top" align="middle" width="601"
    > style="HEIGHT: 0.64in">
    > <uc1:pageheader id="PageHeader" runat="server"></uc1:pageheader>
    > </td>
    > <td class="FormSpacer" width="200" rowSpan="3"></td>
    > </TR>
    > <TR>
    > <TD class="WorkSpace" vAlign="top">
    > <div align="center">
    > <asp:hyperlink id="hplSecureSession" runat="server"
    > NavigateUrl="https://statslink.streck.com/">Click here for SECURE
    > INTERNET SESSION</asp:hyperlink>
    > </div>
    > <DIV align="center" class="WorkSpace" noWrap>
    > </DIV>
    > </TD>
    > </TR>
    > <TR>
    > <td class="PageFooter" height="50">
    > <uc1:pagefooter id="PageFooter" runat="server"></uc1:pagefooter>
    > </td>
    > </TR>
    > </TABLE>
    > </form>
    > </body>
    >
    > Thank you!
    > Kalvin

    eruess 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