From f3fa52599f59c09e25fd5a7129504aecbf610d46 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 26 May 2008 14:42:45 -0700 Subject: [PATCH] LAYOUT: floating tables on the statistics page less text, captions are real captions not in paragraphs anymore, etc. not sure about the floating arrangments, but still better than before Signed-off-by: Arun Persaud --- css/{standard004.css => standard005.css} | 9 ++++ include/output.php | 7 ++- include/stats.php | 58 +++++++----------------- 3 files changed, 31 insertions(+), 43 deletions(-) rename css/{standard004.css => standard005.css} (97%) diff --git a/css/standard004.css b/css/standard005.css similarity index 97% rename from css/standard004.css rename to css/standard005.css index a568441..24ffb30 100644 --- a/css/standard004.css +++ b/css/standard005.css @@ -399,6 +399,7 @@ ul.tricks li div div span.comment span{ } .user { margin-left:25%;margin-right:25%; } +.wide { margin-left:5%;margin-right:5%; } .over { text-align:center; @@ -460,9 +461,17 @@ table.score { font-size:larger; } +caption { + text-align: center; + margin: 0.5em; + padding: 0.5em; + padding-bottom: 0em; + margin-bottom: 0; + } table.stats { margin: 0.5em 1em; border: solid 0.2em #aeaeae; -moz-border-radius: 0.5em ; + float: left; } table.stats tr.odd { background-color:#aeaeae; } table.stats tr.even { background-color:#eaeaea; } diff --git a/include/output.php b/include/output.php index 3eb8130..a0b9df3 100644 --- a/include/output.php +++ b/include/output.php @@ -96,7 +96,7 @@ function output_form_for_new_game($names) \n"; @@ -105,6 +105,9 @@ function output_table($data,$class="") $i=0; + if($caption!="") + $HTML .= " $caption \n"; + foreach($data as $record) { if(!$i) @@ -270,7 +273,7 @@ function output_header() e-Doko - +