Browse Source

- 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)
migration/unlabaled-1.29.2
foobar 23 years ago
parent
commit
1b5ee53dd7
  1. 3
      ext/standard/css.c
  2. 4
      ext/standard/info.c

3
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");

4
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>");
}
}
/* }}} */

Loading…
Cancel
Save