summaryrefslogtreecommitdiff
path: root/ext/standard/css.c
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 /ext/standard/css.c
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)
Diffstat (limited to 'ext/standard/css.c')
-rw-r--r--ext/standard/css.c3
1 files changed, 3 insertions, 0 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");