Skip to content

Commit eb12335

Browse files
freddenpetk
authored andcommitted
Fix #77105: Use position:sticky for <th> in phpinfo()
This ensures tables remain legible when scrolling. If the user agent does not support this feature, then it will gracefully degrade to existing behaviour. This patch implements: https://bugs.php.net/bug.php?id=77105
1 parent c364edf commit eb12335

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/css.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ PHPAPI void php_info_print_css(void) /* {{{ */
3030
PUTS(".center table {margin: 1em auto; text-align: left;}\n");
3131
PUTS(".center th {text-align: center !important;}\n");
3232
PUTS("td, th {border: 1px solid #666; font-size: 75%; vertical-align: baseline; padding: 4px 5px;}\n");
33+
PUTS("th {position: sticky; top: 0; background: inherit;}\n");
3334
PUTS("h1 {font-size: 150%;}\n");
3435
PUTS("h2 {font-size: 125%;}\n");
3536
PUTS(".p {text-align: left;}\n");

0 commit comments

Comments
 (0)