Advanced screen : removed a HTML table
authorThierry Pasqualier <thierry@uncensored.citadel.org>
Sat, 25 Aug 2007 19:02:28 +0000 (19:02 +0000)
committerThierry Pasqualier <thierry@uncensored.citadel.org>
Sat, 25 Aug 2007 19:02:28 +0000 (19:02 +0000)
webcit/mainmenu.c
webcit/static/webcit.css

index e595709a4c347b6b337054ae61c759de8d2522e2..cb5909e04907b94e747d0b7c114c2f08f237c8d1 100644 (file)
@@ -24,12 +24,8 @@ void display_main_menu(void)
        svprintf("BOXTITLE", WCS_STRING, _("Basic commands"));
        do_template("beginbox");
 
-       wprintf("\n"
-               "<table border=0 cellspacing=1 cellpadding=1 width=99%%>"
-               "<tr valign=\"top\">"
-               "<td>");        /**< start of first column */
-
-       wprintf("<ul class=\"adminitems\">");
+       /**< start of first column */
+       wprintf("<ul class=\"adminitems col1\">");
 
        wprintf("<li><a href=\"knrooms\">");
        wprintf(_("List known rooms"));
@@ -59,9 +55,9 @@ void display_main_menu(void)
 
        wprintf("</ul>\n");
 
-       wprintf("</td><td>\n"); /* start of second column */
+       /* start of second column */
 
-       wprintf("<ul class=\"adminitems\">");
+       wprintf("<ul class=\"adminitems col2\">");
 
        wprintf("<li><a href=\"readnew\">");
        wprintf(_("Read new messages"));
@@ -91,9 +87,9 @@ void display_main_menu(void)
 
        wprintf("</ul>\n");
 
-       wprintf("</td><td>");   /* start of third column */
+       /* start of third column */
 
-       wprintf("<ul class=\"adminitems\">");
+       wprintf("<ul class=\"adminitems lastcol\">");
 
        wprintf("<li><a href=\"summary\">");
        wprintf(_("Summary page"));
@@ -115,7 +111,8 @@ void display_main_menu(void)
 
        wprintf("</ul>\n");
 
-       wprintf("</td></tr></table>\n");
+       wprintf("&nbsp;");
+
        do_template("endbox");
 
        wprintf("</td></tr>"
index f32a43b06412399bc4acee05a3a733b48c1a4a45..a07d1a7e2bb00dd7f62fbbdb527bd6b77ec78e38 100644 (file)
@@ -950,6 +950,12 @@ div.auto_complete ul strong.highlight {
         text-align: center;
 }
 
+.boxcontent .col1,  .boxcontent .col2  { 
+       float: left;
+       width: 33%;
+}
+
+
 #login_screen {
        margin: 3%;
 }