Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2011
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I need help removeing spaces between images in body PLEASE HELP

    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:
    <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>

  • #2
    Senior Coder
    Join Date
    Aug 2010
    Location
    High Point, NC
    Posts
    3,335
    Thanks
    5
    Thanked 363 Times in 360 Posts
    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.

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

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,606
    Thanks
    6
    Thanked 997 Times in 970 Posts
    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.
    Code:
    table {border-collapse: collapse;}


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •