Jump to content

Archived

This topic is now archived and is closed to further replies.

russia5

I got some white space...

Recommended Posts

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>

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Thankyou very much!  All fixed and working great thanks to suggestion.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.