sniper Thu Oct 10 00:28:15 2002 EDT
Modified files:
/php4/ext/standard css.c info.c
Log:
- Fix the text alignment to be about same in any browser.
# Please test this, it's now same in NS 4.78 (linux), IE 5.5 and
# Mozilla 1.2a (win32). (I don't have any other browsers installed now)
Index: php4/ext/standard/css.c
diff -u php4/ext/standard/css.c:1.5 php4/ext/standard/css.c:1.6
--- php4/ext/standard/css.c:1.5 Wed Oct 9 19:18:47 2002
+++ php4/ext/standard/css.c Thu Oct 10 00:28:15 2002
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: css.c,v 1.5 2002/10/09 23:18:47 sniper Exp $ */
+/* $Id: css.c,v 1.6 2002/10/10 04:28:15 sniper Exp $ */
#include "php.h"
#include "info.h"
@@ -34,6 +34,9 @@
PUTS("a:link {color: #000099; text-decoration: none;}\n");
PUTS("a:hover {text-decoration: underline;}\n");
PUTS("table {border-collapse: collapse;}\n");
+ PUTS(".center {text-align: center;}\n");
+ PUTS(".center table { margin-left: auto; margin-right: auto; text-align:
+left;}\n");
+ PUTS(".center th { text-align: center; !important }\n");
PUTS("td, th { border: 1px solid #000000; font-size: 75%; vertical-align:
baseline;}\n");
PUTS("h1 {font-size: 150%;}\n");
PUTS("h2 {font-size: 125%;}\n");
Index: php4/ext/standard/info.c
diff -u php4/ext/standard/info.c:1.215 php4/ext/standard/info.c:1.216
--- php4/ext/standard/info.c:1.215 Wed Oct 9 10:39:39 2002
+++ php4/ext/standard/info.c Thu Oct 10 00:28:15 2002
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: info.c,v 1.215 2002/10/09 14:39:39 cmv Exp $ */
+/* $Id: info.c,v 1.216 2002/10/10 04:28:15 sniper Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -318,7 +318,7 @@
php_printf("<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=%s\" />\n", charset);
*/
PUTS("</head>\n");
- PUTS("<body><center>\n");
+ PUTS("<body><div class=\"center\">\n");
}
/* }}} */
@@ -586,7 +586,7 @@
}
}
if (PG(html_errors)) {
- PUTS("</center></body></html>");
+ PUTS("</div></body></html>");
}
}
/* }}} */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php