Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4615658
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:52:16+00:00 2026-05-22T01:52:16+00:00

I am trying to create brackets using tables and I’ve done all the calculations

  • 0

I am trying to create brackets using tables and I’ve done all the calculations for the rowspan heights for all the cell elements, but I’m having trouble with how it keeps placing the cells into the table with rowspans defined in previous rows. See this example:

<table border="1">
<tr>
<td style="min-width: 100px">Begin</td>
<td style="min-width: 10px"></td>
<td style="min-width: 10px"></td>
<td style="min-width: 100px">End</td>
</tr>
<tr>
<td colspan="4" style="height: 20px"></td>
</tr>
<tr>
<td rowspan="2">Seed 1</td>
<td rowspan="2"></td>
<td rowspan="5"></td>
<td rowspan="3"></td>
</tr>
<tr>
<td></td>
</tr>
</table>

Here, the current heights for each column (excluding the rows above because they are already even) are at 2, 2, 5, and 3. However when adding another element in the next row just to see where it gets placed in the table, it is rendered to the right of the existing row, creating a fifth column that shouldn’t exist. Why is it not placed in the first column making the column heights 3, 2, 5, and 3? I was under the impression that the table would put the element in the next shortest column. Am I completely off with tables? What should I do to make this element actually appear in the first column where it’s supposed to be? Does the entire table need to be completed in order for this to render correctly (usually tables will just leave blank space where cells have not been placed)?

I searched on Google for an hour and couldn’t find anything pertaining to how the cells are actually supposed to be placed when the HTML is processed by the browser. There’s too much other garbage about how tables work and yada yada ya.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T01:52:17+00:00Added an answer on May 22, 2026 at 1:52 am

    Actually, what is happening is that the final cell is trying to go in the next row immediately below the first row. However, the next row is already full, because every cell is at least two rows high. The first row contains [Seed 1] [] [] [], and the second row contains the bottom part of the first two cells, and the middle of the third and fourth cell from the row above.

    If you make an empty row and move down to the third row below, you see the cells start to appear in the table as you expected:

    <tr></tr>
    <tr>
        <td>Row 3, Cell 1</td>
        <td>Row 3, Cell 2</td>
        <!-- no room left, now move to row 4 -->
    </tr>
    

    Cells don’t automatically flow from one row to the next. You have to explicitly close the row and start the next row when each row is full. In your case, you entirely filled two full rows at once, so you have to skip a row to get to the next row with available cells.

    Here is a sample that shows the cells working as you expect: http://jsfiddle.net/UmLqw/1/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
Ok so I am trying create a login script, here I am using PHP5
Trying to create a user account in a test. But getting a Object reference
Trying to create several layers of folders at once C:\pie\applepie\recipies\ without using several different
hi I'm trying create chat using node.js I see example in http://chat.nodejs.org/ I have
I'm trying create a RCP Application with Eclipse, but I can't get past the
I am trying to create a XML variable but I need to include a
We are trying to create an index on CDX and ADT tables that use
I'm trying to create a Regex to block all < and > in a
I am trying create a new css for shaping my detailsview. But i couldn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.