www.webdeveloper.com
Page 1 of 2 12 LastLast
Results 1 to 15 of 17

Thread: creating tournament brackets?

  1. #1
    Join Date
    Feb 2006
    Posts
    29

    creating tournament brackets?

    does anyone know how to code a bracket for like tournament use? i wanna make my own tournaments

  2. #2
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    a bracket? I don't understand what you want?

  3. #3
    Join Date
    Feb 2006
    Posts
    29
    u know what tournament brackets look like
    i wanna make one for my page for pool league...u know
    ----------
    -
    ----------
    -------------
    ----------
    -
    ----------

    there lol like that

  4. #4
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    Sorry I still don't understand. I might leave it up to someone else to help you out.

  5. #5
    Join Date
    Feb 2006
    Posts
    29
    have u not seen a tournament bracket?? like mens final 4 tournament?

  6. #6
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    does this site help you out?

  7. #7
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,538
    Eh, he's in Australia. They're not getting ready for "March Madness" there. (B_G: we're talking about single-elimination tournament pairings, such as at the Australian Open tennis tournament: 32 pairings, the winners play in 16 pairings, those winners in 8 pairings, etc. down to the finals. The NCAA college basketball tournament is always a big deal here in the US, especially for office pools where you get points for picking who the winner will be in each game in the "bracket".)

    I tried messing around with creating a CSS bracket last year (no tables) but failed miserably. Maybe I'll try again now that I have another year of CSS experience under my belt.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  8. #8
    Join Date
    Feb 2006
    Posts
    29
    helps yes but id rather have the brackets on my own site

  9. #9
    Join Date
    Apr 2005
    Location
    Bathurst, NSW, Australia
    Posts
    3,357
    Ok, I understand now - I just never knew they were called 'brackets', I have always called them a table, although I'm not the athletic type and have never really played in full on tournaments. Well your in good hands now tom with nog so I'll leave you both to it :P

  10. #10
    Join Date
    Feb 2006
    Posts
    29
    nog u ever make table on left margin seperate from the rest of the window?

  11. #11
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,538
    Here's a fairly simple table layout for one 16-team region:
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html lang='en'>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=ISO-8859-1'>
    <title>Page Title</title>
    <!-- link rel='stylesheet' href='style.css' type='text/css' -->
    <style type="text/css">
    <!--
    table {
      border-collapse: collapse;
      border: none;
      font: small arial, helvetica, sans-serif;
    }
    td {
      vertical-align: middle;
      width: 10em;
      margin: 0;
      padding: 0;
    }
    td p {
      border-bottom: solid 1px black;
      margin: 0;
      padding: 5px 5px 2px 5px;
    }
    -->
    </style>
    </head>
    <body>
    <table summary="Tournament Bracket">
     <tr>
      <td><p>1. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
      <td rowspan="4"><p>team name</p></td>
      <td rowspan="8"><p>team name</p></td>
      <td rowspan="16"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>16. team name</p></td>
     </tr>
     <tr>
      <td><p>8. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>9. team name</p></td>
     </tr>
     <tr>
      <td><p>5. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
      <td rowspan="4"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>12. team name</p></td>
     </tr>
     <tr>
      <td><p>4. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>13. team name</p></td>
     </tr>
     <tr>
      <td><p>6. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
      <td rowspan="4"><p>team name</p></td>
      <td rowspan="8"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>11. team name</p></td>
     </tr>
     <tr>
      <td><p>3. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>14. team name</p></td>
     </tr>
     <tr>
      <td><p>7. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
      <td rowspan="4"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>10. team name</p></td>
     </tr>
     <tr>
      <td><p>2. team name</p></td>
      <td rowspan="2"><p>team name</p></td>
     </tr>
     <tr>
      <td><p>15. team name</p></td>
     </tr>
    </table>
    </body>
    </html>
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  12. #12
    Join Date
    Feb 2006
    Posts
    29
    thanks for that....darn been out of html for a few years and everything is being converted to css now huh ?? i guess i should learn css lol

  13. #13
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,538
    Quote Originally Posted by bigtommy911
    thanks for that....darn been out of html for a few years and everything is being converted to css now huh ?? i guess i should learn css lol
    Yep. HTML is for defining the meaning. CSS is for defining the appearance.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  14. #14
    Join Date
    Feb 2006
    Posts
    29
    you happen to know how to make a menu bar to left margin seperated from rest of the window? strictly html without css?? i did it before a loong time ago just cant remember anything lol

  15. #15
    Join Date
    Jul 2008
    Posts
    1
    this is an old thread, I know, but I have a question that directly relates to it. I am trying to make a bracket similar to these, but distinctly different. Round one seeds look like this (H01 = Competition #1, with three seeds competing for 1st, 2nd, and 3rd)

    H01 - 10,26,39
    H02 - 09,25,40
    H03 - 08,24,41
    H04 - 07,23,42
    H05 - 06,22,43
    H06 - 05,21,44
    H07 - 04,20,45
    H08 - 01,17,48
    H09 - 02,18,47
    H10 - 03,19,46
    H11 - 11,27,38
    H12 - 12,28,37
    H13 - 13,29,36
    H14 - 14,30,35
    H15 - 15,31,34
    H16 - 16,32,33

    Then 1st place move to Round 3, and 2nd and Third move to Round 2, where the seeds are matched up as follows:

    H01 - 01,16
    H02 - 02,15

    and so on, 8 comps total. My question is fairly simple - how do I figure out the equation that assigns the top seed in Round 2 to seed #1 - meaning, their seed could be 16, but if they are the highest seed inn Round 2, then they occupy the top seed for that round. Confused here.

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles