ID: 25111
Updated by: [EMAIL PROTECTED]
Reported By: swift_mcviegh at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Output Control
Operating System: Windows 2000
PHP Version: 4.3.3RC3
New Comment:
Watch your whitespace. (ask further questions on
[EMAIL PROTECTED])
Previous Comments:
------------------------------------------------------------------------
[2003-08-16 21:33:26] swift_mcviegh at hotmail dot com
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
------------------------------------------------------------------------
[2003-08-16 21:30:02] 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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25111&edit=1