summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2002-10-10 04:28:15 +0000
committerfoobar <sniper@php.net>2002-10-10 04:28:15 +0000
commit1b5ee53dd759966c3efd4e0786b1c8eee9a0204c (patch)
treeaebb92e464b178237fab9e08bc772c66549bc673
parentd448bd7840d7a6d3dae8bf42ad26f2f6fb45d761 (diff)
downloadphp-git-1b5ee53dd759966c3efd4e0786b1c8eee9a0204c.tar.gz
- 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)
-rw-r--r--ext/standard/css.c3
-rw-r--r--ext/standard/info.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/ext/standard/css.c b/ext/standard/css.c
index f07f7e7f33..7d7e4acddc 100644
--- a/ext/standard/css.c
+++ b/ext/standard/css.c
@@ -34,6 +34,9 @@ PHPAPI void php_info_print_css(void)
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");
diff --git a/ext/standard/info.c b/ext/standard/info.c
index 0fc8143b00..bed9880465 100644
--- a/ext/standard/info.c
+++ b/ext/standard/info.c
@@ -318,7 +318,7 @@ PHPAPI void php_print_info_htmlhead(TSRMLS_D)
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 @@ PHPAPI void php_print_info(int flag TSRMLS_DC)
}
}
if (PG(html_errors)) {
- PUTS("</center></body></html>");
+ PUTS("</div></body></html>");
}
}
/* }}} */