russia5 Posted July 22, 2006 Share Posted July 22, 2006 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> Quote Link to comment https://forums.phpfreaks.com/topic/15338-i-got-some-white-space/ Share on other sites More sharing options...
AndyB Posted July 22, 2006 Share Posted July 22, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/15338-i-got-some-white-space/#findComment-62092 Share on other sites More sharing options...
russia5 Posted July 22, 2006 Author Share Posted July 22, 2006 Thankyou very much! All fixed and working great thanks to suggestion. Quote Link to comment https://forums.phpfreaks.com/topic/15338-i-got-some-white-space/#findComment-62177 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.