6

I am trying to create a bracket system using HTML. I've found other solutions, however, most require lots of absolute/relative positioning or tables.

I'm looking for a way to make it flexible, so I can just change the HTML to change it from a 16-man bracket to a 64-man bracket.

[404 - link removed]

Now, I don't see much wrong with my current example, however, I'm just curious if there is anyone out there has some suggestions on improving or completely changing the way I am doing it.

I'd rather stay away from tables, and definitely stay away from any sort of positioning (this is meant to be flexible).

If you have any ideas, that would be great. :)

Thanks,

Andrew

1
  • 4
    I'm doing something similar and would really like to see this code as well. However, the link seems broken. Would you mind pasting the code onto your post here on StackOverflow?
    – Spike
    Mar 14, 2010 at 20:41

1 Answer 1

2

That actually looks fairly good. What I would do to improve it is encapsulate the logic in a bit of Javascript, supply the bracket information in some sort of text format, and have the Javascript parse the text format to generate the bracket as deeply as you need it.

2
  • That's basically what I will be doing, however, I think I'll use Ruby on Rails to handle the logic, as this will be an app coded with RoR. Thanks for the comment. I think with some small cleanup, this might be my final draft. Mar 21, 2009 at 4:56
  • I'll second this - your existing html looks pretty good to me.
    – Chris
    Mar 23, 2009 at 23:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.