|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-08-16 21:30 UTC] swift_mcviegh at hotmail dot com
Description:
------------
When I use the switch function, it pushes an odd margin into the scene. Due to limits on the posting of code, i was not able to post the body tag, required to reproduce the problem. I will post it below.
I wish to make a table cover the entire top of the screen, left to right. Without using the switch function, it works fine. SO i dont know exactly what happened.
Body Code:
<body bgcolor="#336699" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
Reproduce code:
---------------
<?php
switch ($action)
{
case "bleh":
?>
<table width="870" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="132" bgcolor="#003399"> </td>
<td width="594"> </td>
<td width="144" bgcolor="#003399"> </td>
</tr>
</table>
<?
break;
default:
?>
<a href="index.php?action=bleh">click this now!</a>
<?
}
?>
Expected result:
----------------
I expect the table lined across the top to appear fully left to right with NO margins
Actual result:
--------------
I get an odd push of the table, this ends up pushing the table to the left
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 09:00:01 2025 UTC |
EDIT: Code SHOULD BE As listed below: <body bgcolor="#336699" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#003399"> <tr> <td><font color="#FFFFFF" size="2" face="Verdana"><strong>Swiftymc - Coming Soon</strong></font></td> </tr> </table> Im sorry for the mistake