PDA

View Full Version : Say...weren't the numbers in the stats like aligned before?



runestar
09-05-2002, 05:58 AM
Say...weren't the numbers in the stats like... aligned... before? Or was that just a dream of a parallel universe where the numbers in the graphics in the stats were lined up?

RS½

wirthi
09-05-2002, 06:59 AM
HI,

I guess Brian tries to keep the numbers readable by aligning them somehow - he tries to avoid to write numbers on top of a changeover between the white and the colored part of the graph. Only when a graph is almost completely colored or white, the number ist centered.

Just my 2 (Euro-) Cent ...

wirthi
09-05-2002, 07:40 AM
Hi,

a slight correction to the last posting: The graphs are displayed by 2 table-cells: their size corresponds to the percentage they display (40% white, 60% colored if it should display 60%); the number is always written in the bigger cell ....

Wirthi

Brian the Fist
09-05-2002, 10:40 AM
Yup. If anyone knows a clever way to make the text span both cells, let me know, otherwise you'll have to live with it - its still better than the horrid GIFs.

pointwood
09-05-2002, 03:03 PM
If I understand you correctly, <td rowspan="2"> should do just that.

Read more here:
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.6.1

Btw. you don't have a doctype defined - you can find doctypes here:
http://webstandards.org/learn/templates/

You've also got some problems with improper nesting of tags and other such minor stuff and the validator (http://validator.w3.org/check?uri=http%3A%2F%2Fdistributedfolding.org%2F&charset=us-ascii+%28basic+English%29&doctype=HTML+4.01+Transitional) doesn't like it ;)

Sorry, I'm bit of a webstandards fanatic ;) I always complain to the webmasters when I find a website that doesn't work properly in my preferred browser (Mozilla). I haven't complained about the DF site since it haven't caused problems in Mozilla so far, but websites that validates is a Good (http://webstandards.org/about/) Thing (http://webstandards.org/learn/faq/)[TM] ;)

wirthi
09-05-2002, 03:21 PM
Originally posted by pointwood
If I understand you correctly, <td rowspan="2"> should do just that.

Guess that's not the solution. What Brian is looking for is a method to span the text over two cells, while the cells keeps intact seperatly. rowspan would just make one cell out of two ...

The best solution in my eyes would be to write the number next to the graph. It would look different then now of course, but it would work :)

pointwood
09-05-2002, 03:33 PM
/me needs to learn to read :rolleyes: :)

Hmm...I don't think that is possible with tables. It may be possible with CSS though.

Your suggestion (writing it next to the graphics) is easier and would work fine.