tables & rows & columns

Discussion in 'ASP .Net' started by et, Oct 22, 2005.

  1. et

    et Guest

    I have a table that doesn't line up the way I want it to. I have 6 rows and
    3 columns. The 3rd column spans the 6 rows and contains a grid. If the
    data in the grid has more than 6 rows of data, the other rows spread out
    vertically, as if there is extra space in there. I don't want that to
    happen, I want the 6 rows to be together as if there is no space between
    then. I have tried using height, valign, using a set height and using a
    percentage height and it doesn't work. How can I make the 6 rows on the
    left align all the way to the top?

    <table borderColor=red cellSpacing=0 cellPadding=0 width="100%" border=1
    runat="server" ID="Table1">
    <tr vAlign=top colspan=4><td>&nbsp;</td></tr>

    <tr vAlign=top>
    <td valign=top style="HEIGHT: 15px" align=left width=100>Col 1</td>
    <td vAlign=top height=5>Col 2</td>
    <td align=right rowspan=6>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col
    3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col
    3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br>Col 3<br></td>
    <td align=left rowspan=6>Col 4</td></tr>
    <tr valign=top height=1>
    <td valign=top>col 1</td>
    <td valign=top>col 2</td>
    </tr>
    <tr valign=top height=1>
    <td valign=top>col 1</td>
    <td valign=top>col 2</td>
    </tr>
    <tr valign=top height=1>
    <td valign=top>col 1</td>
    <td valign=top>col 2</td>
    </tr>
    <tr valign=top height=1>
    <td valign=top>col 1</td>
    <td valign=top>col 2</td>
    </tr>
    <tr valign=top>
    <td valign=top>col 1</td>
    <td valign=top>col 2</td>
    </tr>

    </table>
     
    et, Oct 22, 2005
    #1
    1. Advertisements

  2. et

    Remy Guest

    Maybe I didn't really get your question, but I do not see a grid in the
    3rd column.
    But did you try to put another table into one cell? That often works.

    Remy Blaettler
    www.collaboral.com
     
    Remy, Oct 22, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.