Thread: Html

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    67

    Html

    I dont know if this is the right place to post this, but I'll give it a shot anyway,

    I have this HTML code
    Code:
    <html>
     <head>
      
      <title>TEST</title>
     </head>
     
     <body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0">
     
     <table border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td>
        <img src="boven.gif">
       </td>
      </tr>
      <tr>
       <td>
        <img src="onder.gif">
       </td>
      </tr>
     </table>
    
     </body>
    
    </html>
    It's supposed to leave no space/padding/border between the two gifs but it does so anyway, anyone any ideas on how to resolve this?
    thanx!

  2. #2
    Registered User
    Join Date
    Jan 2002
    Location
    Vancouver
    Posts
    2,212

    Re: Html

    Your code was correct, it's just internet explorer is retarded and leaves a little space because of your newline after the <img> tag, just move the </td> up to the same line and it resolves this issue
    Code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html
    	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    	 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
     <head> 
      <title>TEST</title>
     </head>
     
     <body bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0">
     
     <table border="0" cellspacing="0" cellpadding="0">
      <tr>
       <td>
        <img src="boven.gif" border="0" /></td>
      </tr>
      <tr>
       <td>
        <img src="onder.gif" border="0" /></td>
      </tr>
     </table>
    
     </body>
    
    </html>

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    67
    Haha was that all, thanks mate! I thought I was going nuts :P

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Help - C code creates dynamic HTML
    By Christie2008 in forum C Programming
    Replies: 19
    Last Post: 04-02-2008, 07:36 PM
  2. Writing an HTML Preprocessor
    By thetinman in forum C++ Programming
    Replies: 1
    Last Post: 09-17-2007, 08:01 AM
  3. Library which extract html tags content
    By Bargi in forum C++ Programming
    Replies: 0
    Last Post: 05-10-2007, 10:17 PM
  4. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 06:32 AM