move #tricks to new line and center it
authorArun Persaud <arun@nubati.net>
Sat, 8 Oct 2011 03:21:49 +0000 (20:21 -0700)
committerArun Persaud <apersaud@lbl.gov>
Sat, 8 Oct 2011 03:21:49 +0000 (20:21 -0700)
css/standard.css
include/functions.php

index 36068120714f301b23404cd11fff415a2454b5e1..5624cb5bc5cd83a696c14ea6e21dbd2708c74e1f 100644 (file)
@@ -184,7 +184,7 @@ div.table img.table {
 div.table div {
   /*background-color:green;*/
   position:absolute;
-  width:12.5%;
+  width:10.5%;
   text-align:center;
   z-index:20;
 }
@@ -702,6 +702,7 @@ div.table div img.gravatar, img.gravatar  {
     width:  4em;
     height: 4em;
     border: 3px solid #aaa;
+    float:left;
 }
 
 div img.button {
@@ -709,6 +710,12 @@ div img.button {
     width: 2em;
 }
 
+div span.numberoftricks {
+    text-align:center;
+    clear:both;
+    display:block;
+}
+
 .highcall {
     background-color: #fc3;
 }
index 803d70d797e8e659d5bca8bb0cc19a719dc87c44..0653ce4ecb9d3d372795a0441907dbbd04434fdb 100644 (file)
@@ -1124,21 +1124,22 @@ function display_table ()
        "title=\"local time: ".date("Y-m-d H:i:s",$timenow).  " ".
        "last login: ".date("Y-m-d H:i:s",$lastlogin)."\" />";
 
+      echo "   <span class=\"numberoftricks\">";
       /* show how many tricks the person made */
       switch($wins)
        {
        case 0:
-         echo "#tricks 0\n"; break;
+         echo "#tricks 0"; break;
        case 1:
-         echo "#tricks 1\n"; break;
+         echo "#tricks 1"; break;
        case 2:
        case 3:
        case 4:
-         echo "#tricks few\n"; break;
+         echo "#tricks few"; break;
        default:
-         echo "#tricks many\n"; break;
+         echo "#tricks many"; break;
        }
-
+      echo "</span>\n";
       echo "  </div>\n";
 
     }