* Started changing some of the top-level tables from 100% width to 99%
authorArt Cancro <ajc@citadel.org>
Mon, 14 Feb 2005 04:57:24 +0000 (04:57 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 14 Feb 2005 04:57:24 +0000 (04:57 +0000)
  width in order to keep the b0rken CSS box-model from displaying a
  horizontal scroll bar when it shouldn't.  Lose, lose, lose.

webcit/ChangeLog
webcit/calendar_view.c
webcit/mainmenu.c
webcit/messages.c
webcit/summary.c
webcit/who.c

index 2b42dff821d836c78dbdc539dd4977625d4ae812..325d4952d0ed693814cd30647cf1936f0c9f5bc5 100644 (file)
@@ -1,4 +1,9 @@
 $Log$
+Revision 601.2  2005/02/14 04:57:23  ajc
+* Started changing some of the top-level tables from 100% width to 99%
+  width in order to keep the b0rken CSS box-model from displaying a
+  horizontal scroll bar when it shouldn't.  Lose, lose, lose.
+
 Revision 601.1  2005/02/13 04:22:31  ajc
 * Network configuration screen: add IMAPS, POP3S, and SMTPS ports
 
@@ -2344,4 +2349,3 @@ Sun Dec  6 19:50:55 EST 1998 Art Cancro <ajc@uncnsrd.mt-kisco.ny.us>
 
 1998-12-03 Nathan Bryant <bryant@cs.usm.maine.edu>
        * webserver.c: warning fix
-
index 5d074c80e7293a61daeffcfba75786e90dfb5112..1dfbf351d1629edac0b5e67aa07f44be110e2bcb 100644 (file)
@@ -155,7 +155,8 @@ void calendar_month_view(int year, int month, int day) {
        }
 
        /* Outer table (to get the background color) */
-       wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
+       wprintf("<center>"
+               "<TABLE width=99%% border=0 cellpadding=0 cellspacing=0 "
                "bgcolor=#204B78><TR><TD>\n");
 
        wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0><tr>\n");
@@ -198,7 +199,7 @@ void calendar_month_view(int year, int month, int day) {
                        wprintf("<TR>");
                }
 
-               wprintf("<TD BGCOLOR=\"#%s\" WIDTH=14%% HEIGHT=60 VALIGN=TOP><B>",
+               wprintf("<TD BGCOLOR=\"#%s\" WIDTH=14%% HEIGHT=60 align=left VALIGN=TOP><B>",
                        ((tm.tm_mon != month-1) ? "DDDDDD" :
                        ((tm.tm_wday==0 || tm.tm_wday==6) ? "EEEECC" :
                        "FFFFFF"))
@@ -334,7 +335,8 @@ void calendar_day_view(int year, int month, int day) {
 
 
        /* Outer table (to get the background color) */
-       wprintf("<TABLE width=100%% border=0 cellpadding=0 cellspacing=0 "
+       wprintf("<center>"
+               "<TABLE width=99%% border=0 cellpadding=0 cellspacing=0 "
                "bgcolor=#204B78><TR><TD>\n");
 
        /* Inner table (the real one) */
@@ -441,7 +443,7 @@ void calendar_day_view(int year, int month, int day) {
 
 
        wprintf("</TR></TABLE>"                 /* end of inner table */
-               "</TD></TR></TABLE>"            /* end of outer table */
+               "</TD></TR></TABLE></center>"   /* end of outer table */
        );
 
 
index e5cdbf0e5df986c1a813f190985a0a1786916a21..ad3ca5286b50dfe8a574944847b059cb0b19f5b1 100644 (file)
@@ -35,7 +35,7 @@ void display_main_menu(void)
 {
        output_headers(1, 1, 1, 0, 0, 0, 0);
 
-       wprintf("<TABLE WIDTH=100%%>"
+       wprintf("<center><TABLE WIDTH=99%%>"
                "<TR><TD COLSPAN=2>\n");
 
        svprintf("BOXTITLE", WCS_STRING, "Basic commands");
@@ -252,7 +252,7 @@ void display_main_menu(void)
                }
                do_template("endbox");
        }
-       wprintf("</TD></TR></TABLE>");
+       wprintf("</td></tr></table></center>");
        wDumpContent(2);
 }
 
index 718177f4ed60abb5f84fbecdbb86107d2a5725b6..4e6d28f991e0ccf99841ef287c61916bd61537fb 100644 (file)
@@ -369,7 +369,7 @@ void read_message(long msgnum) {
        }
 
        /* begin everythingamundo table */
-       wprintf("<table width=100% border=1 cellspacing=0 "
+       wprintf("<center><table width=99%% border=1 cellspacing=0 "
                "cellpadding=0><TR><TD>\n");
 
        /* begin message header table */
@@ -642,7 +642,7 @@ ENDBODY:
        wprintf("</TD></TR></TABLE>\n");
 
        /* end everythingamundo table */
-       wprintf("</TD></TR></TABLE><br />\n");
+       wprintf("</TD></TR></TABLE></center><br />\n");
 }
 
 
index f6e884aefe08a88805dcc502d3c071065e12bf9c..128dd835facde25531e14e322f375952e7c8cb27 100644 (file)
@@ -249,7 +249,7 @@ void summary(void) {
         * not people I consider worthwhile, I still want them to use WebCit.
         */
 
-       wprintf("<table border=0><tr valign=top>");
+       wprintf("<center><table border=0 width=99%%><tr valign=top>");
 
        /*
         * Column One
@@ -276,7 +276,7 @@ void summary(void) {
        /*
         * End of columns
         */
-       wprintf("</td></tr></table>\n");
+       wprintf("</td></tr></table></center>\n");
 
        wDumpContent(1);
 }
index eed1403f21a5d2b4b3073ac9b308237f944363ac..40a988fb3ce237928ba14c6765f8cdd3f3804580 100644 (file)
@@ -61,9 +61,9 @@ void whobbs(void)
        wprintf("</div>\n"
                "<div id=\"content\">\n");
 
-       do_template("beginbox_nt");
-       wprintf("<CENTER>"
-               "<TABLE BORDER=0 CELLSPACING=0 WIDTH=100%%>\n<TR>\n");
+       wprintf("<center>"
+               "<table border=0 cellspacing=0 width=99%% bgcolor=\"#FFFFFF\">"
+               "<tr>\n");
        wprintf("<TH COLSPAN=4>Session ID</TH>\n");
        wprintf("<TH>User Name</TH>\n");
        wprintf("<TH>Room</TH>");
@@ -164,7 +164,6 @@ void whobbs(void)
                "<IMG ALIGN=MIDDLE SRC=\"/static/page.gif\" ALT=\"(p)\" "
                "BORDER=0> to send "
                "a page (instant message) to that user.<br /></CENTER>\n");
-       do_template("endbox");
        wDumpContent(1);
 }