tags:

views:

216

answers:

2

Hello,

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.

What I have so far (2 examples)

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

+2  A: 

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.

Ignacio Vazquez-Abrams
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.
Andrew Ryno
I'll second this - your existing html looks pretty good to me.
Chris
A: 

Andrew I am tryng to do the same thing, would you mind sharing the source code?

It's html... view source
Joe Philllips
I actually had someone help me do it using definition lists. Here is that code: http://andrewryno.com/bracket/ - Not all of the classes are created so this is currently the largest it can be. This was my last attempt: http://andrewryno.com/bracket2.html - Still using divs.
Andrew Ryno