cvs: phpweb / style.css /include layout.inc

From: Date: Mon, 12 May 2003 11:14:19 +0000
Subject: cvs: phpweb / style.css /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17518@lists.php.net to get a copy of this message
goba Mon May 12 07:14:19 2003 EDT Modified files: /phpweb style.css /phpweb/include layout.inc Log: Get a bit closer to standards. - use CSS instead of proprietary margin attributes - remove table height attribute, as it was nonsene (the table was much higher that it was specified anyway) - use CSS class instead of <font> which is not allowed to contain anything but inline elements Tested these changes on my local mirror, it seems to be perfect [identical display to current php.net] with Mozilla and Konqueror Index: phpweb/style.css diff -u phpweb/style.css:1.36 phpweb/style.css:1.37 --- phpweb/style.css:1.36 Sat Jan 25 06:59:11 2003 +++ phpweb/style.css Mon May 12 07:14:18 2003 @@ -1,3 +1,14 @@ +/* Let no border around the body appear */ +body, html { + margin: 0px; + padding: 0px; +} + +/* Quicksearch table cell on top of every page. */ +td.quicksearch { + color: white; +} + body, ul, td, th { font-family: verdana,arial,helvetica,sans-serif; font-size: 85%; @@ -181,4 +192,4 @@ .md5sum { color: #6666cc; -} \ No newline at end of file +} Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.146 phpweb/include/layout.inc:1.147 --- phpweb/include/layout.inc:1.146 Sun May 4 12:10:51 2003 +++ phpweb/include/layout.inc Mon May 12 07:14:18 2003 @@ -1,6 +1,6 @@ <?php -/* $Id: layout.inc,v 1.146 2003/05/04 16:10:51 alindeman Exp $ */ +/* $Id: layout.inc,v 1.147 2003/05/12 11:14:18 goba Exp $ */ // Print an image for a sized spacer function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false) @@ -207,12 +207,10 @@ <link rel="shortcut icon" href="/favicon.ico" /> <?php echo (isset($SEARCH_BASE) ? '<base href="' . $SEARCH_BASE . '" />' : ''); ?> </head> -<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" - bgcolor="#ffffff" text="#000000" link="#000099" alink="#0000ff" - vlink="#000099"> +<body bgcolor="#ffffff" text="#000000" link="#000099" alink="#0000ff" vlink="#000099"> <!--UdmComment--> -<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%"> +<table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr bgcolor="#9999cc"> <td align="center" rowspan="2" width="126"><a href="/"><?php print_image('php.gif', 'PHP', false, 'hspace="3"'); ?></a></td> @@ -243,7 +241,7 @@ </tr> <tr bgcolor="#333366"><td colspan="2"><?php spacer(); ?></td></tr> <tr bgcolor="#666699"> - <td align="right" valign="top" colspan="2"><font color="#ffffff"> + <td align="right" valign="top" colspan="2" class="quicksearch"> <form method="post" action="/search.php" class="thin"> <?php if (isset($EXPL_LANG)) { @@ -269,7 +267,6 @@ </select> <?php echo make_submit('small_submit_white.gif', 'search', 'bottom'); ?>&nbsp; </form> -</font> </td> </tr> <tr bgcolor="#333366"><td colspan="3"><?php spacer(); ?></td></tr>

« previous php.mirrors (#17518) next »