...

View Full Version : I need help removeing spaces between images in body PLEASE HELP



realignorent
02-25-2011, 02:21 AM
how do i remove these spaces between my images and table?
if you view the page theres spaces between the two images and for some reason on the bottom it shows a small image of my mid body image

here is the link: http://lilions.com/contact/



<code>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">



<html>


<br></br><br></br>


<img src="http://lilions.com/home/images/tpc.jpg"><img src="http://lilions.com/home/images/cnttp.jpg"><center><table width=1000 height=450><td

background="http://lilions.com/home/images/cntmid.jpg"></center><center><font color="#FFFFFF"><table border="3" bordercolor="FFFFFF" width="630"

bgcolor="000000"></br><td><p><i><b><center><font color="#FFFF00">donbonacorsa@yahoo.com <donbonacorsa@yahoo.com></center></b></i></p></font>
<?php
if ($_POST["email"]<>'') {
$ToEmail = 'donbonacorsa@yahoo.com';
$EmailSubject = 'Site contact form from www.LiLions.com';
$mailheader = "From: ".$_POST["email"]."\r\n";
$mailheader .= "Reply-To: ".$_POST["email"]."\r\n";
$mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n";
$MESSAGE_BODY = "Name: ".$_POST["name"]."<br>";
$MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>";
$MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>";
mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure");
?>
<center><h4><b>
Your message was sent </center></h2>
<?php
} else {
?>
<form action="index.php" method="post"><table width="630" border="0" cellspacing="2" cellpadding="0">
<h4>
<center>

<p>Have questions or comments? Please feel free to fill in the form below to send me an email.</p>
</center>
</h4>

<center></h4><div id="content">

<p><tr align="center"><center>
<td width="29%" class="bodytext">Your Name (required):</td></tr>
</center>
<tr align="center"><center>
<td width="71%"><input name="name" type="text" id="name" size="32"></td></tr>
</center>
</p>

<p><tr align="center"><center>
<td class="bodytext">Your Email (required)</td></tr>
</center>
<tr align="center"><center>
<td><input name="email" type="text" id="email" size="32"></td></tr>
</center>
</p>

<p><tr align="center"><center>
<td class="bodytext">Subject</td></tr>
</center>
<tr align="center"><center>
<td><input name="subject" type="text" id="subject" size="32"></td></tr>
</center>
</p>

<p><tr align="center"><center>
<td class="bodytext">Comment:</td></tr>
</center>
<tr align="center"><center>
<td><textarea name="comment" cols="45" rows="6" id="comment" class="bodytext"></textarea></td></tr>
</center>
</p>

<p><tr align="center"><center>
<td class="bodytext">&nbsp;</td></tr>
</center>
<tr><center>
<td align="center" valign="top"><input type="submit" name="Submit" value="Send"></td></tr>
</center>
</p></table></tr></td></form>


</div>
</b>
</h3>
</table>
<?php
};
?>
</body>

</html>


<center>
<img src="http://lilions.com/home/images/cntbtm.jpg">
</center>

</code>

teedoff
02-25-2011, 02:31 PM
Spaces I think are the least of your worries at this point. You have ALOT of coding validation errors in your mark-up. You can view them here (http://validator.w3.org/check?uri=http%3A%2F%2Flilions.com%2Fcontact%2F&charset=%28detect+automatically%29&doctype=Inline&group=0).

I would work through them first and fix as many as you can. Then if your still having issues, post back here.

VIPStephan
02-25-2011, 03:00 PM
Tables are really the worst way to do it but anyway, you need to set the CSS border-collapse property to collapse for your tables.

table {border-collapse: collapse;}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum