Jump to content


Photo

I got some white space...


  • Please log in to reply
2 replies to this topic

#1 russia5

russia5
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 22 July 2006 - 04:03 PM

Hello, I have a lot of white space that I do not want and I need to get rid of it.  My Top header .gif does not fit squarely on my left Nav .gif  So, I have about a 1/4" white space between the two.  Here is my code that includes both the top header and the right nav.  I have clearly commented the Top nav and the right nav.  I believe that the paragraph tags on the top nav may be causing the problem in that when it returns, the two .gifs don't match up, but I don't know how to fix it if that is the problem.  Hope somebody can help me.  Thanks...

<body topmargin="0" leftmargin="0" rightmargin="0" link="#FF6633">

//Here are the paragraph tags
<p align="center"><? include("includes/header.php"); ?></p>

<table width="765" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td valign="top">  <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td align="center">
<?php
if (empty($_GET['action']))
{
if (empty($_REQUEST['id']))
include('file1.php');
else
include('file2.php');
}
else
{
switch ($_GET['action']) {
case 'subscribe':
$query = 'INSERT INTO Profile_mailinglist (email, code, status) VALUES ("'.$_POST['subemail'].'", "1200", "1")';
mysql_query($query);
echo 'Your email address '.$_POST['subemail'].' is subscribed successfully';
break;
case 'unsubscribe':
$query = 'UPDATE Profile_mailinglist SET status = "0" WHERE email = "'.$_POST['subemail'].'"';
mysql_query($query);
echo 'Your email address '.$_POST['subemail'].' is unsubscribed successfully';
break;
}
}

?>
          </td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
                    <td></td>
</tr>
</table></td>
<td bgcolor="FF6600" valign="top">

//Here is the right nav
<? include("includes/rightmenuhome.php") ?>


<table cellpadding="0" cellspacing="0" border="0"  bgcolor="FF6600">
<tr>
<td height="200" bgcolor="FF6600">
</td>

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 22 July 2006 - 04:25 PM

If you think the paragraph tags are the problem, then why not just remove them?  If their only purpose is to 'center' something, then why not place the 'header' in a new table row at the top of your table instead of before it?
Legend has it that reading the manual never killed anyone.
My site

#3 russia5

russia5
  • Members
  • PipPipPip
  • Advanced Member
  • 94 posts

Posted 22 July 2006 - 08:45 PM

Thankyou very much!  All fixed and working great thanks to suggestion.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users