Problem with table+img

Discussion in 'HTML' started by Yves Lange, Jul 24, 2006.

  1. Yves Lange

    Yves Lange Guest

    Hello,

    I have a problem. I have a little marge under my images/main.jpg but i
    don't understand why. I tried with firefox and IE 6.0 and i couldn't
    find any solutions. Can somebody help me ?!?

    Thks.






    -----------------------------------------------------------------------------
    <!-- # My Source Code -->

    <?php
    //*censorded
    ?>

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    <head>
    <link href="//*censorded.css" rel="stylesheet" type="text/css">
    </head>
    <title>
    //*censorded
    </title>
    <body>
    <table border='0' cellspacing='1' cellpadding='0' width='800'>
    <tr valign='top'>
    <td width='100'>
    <br>
    <center><img src='//*censorded'></center>
    </td>
    <td>
    <center><img src='//*censorded'></center>
    </td>
    </tr>
    <tr valign='top'>
    <td>
    <div id='CadreBorder'>
    <a href=//*censorded</div></a>
    <a href=//*censorded</div></a>
    </div>
    </td>
    <td>
    <div id='CadreBorder'>
    <center><strong>TITLE</strong></center>
    <table border='0' cellspacing='0' cellpadding='0'
    bgcolor='#333333'>
    <tr>
    <td valign='top'>
    <center>
    ***************************************
    <img src='images/main.jpg'>
    ***************************************
    </center>
    </td>
    <td valign='top'>
    ...
    <hr>
    ...
    </td>
    </tr>
    </table>

    <hr>
    ...
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>
     
    Yves Lange, Jul 24, 2006
    #1
    1. Advertising

  2. Yves Lange

    Yves Lange Guest

    Yves Lange a écrit :
    > Hello,
    >
    > I have a problem. I have a little marge under my images/main.jpg but i
    > don't understand why. I tried with firefox and IE 6.0 and i couldn't
    > find any solutions. Can somebody help me ?!?
    >
    > Thks.
    >
    >
    >
    >
    >
    >
    > -----------------------------------------------------------------------------
    >
    > <!-- # My Source Code -->
    >
    > <?php
    > //*censorded
    > ?>
    >
    > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
    > <head>
    > <link href="//*censorded.css" rel="stylesheet" type="text/css">
    > </head>
    > <title>
    > //*censorded
    > </title>
    > <body>
    > <table border='0' cellspacing='1' cellpadding='0' width='800'>
    > <tr valign='top'>
    > <td width='100'>
    > <br>
    > <center><img src='//*censorded'></center>
    > </td>
    > <td>
    > <center><img src='//*censorded'></center>
    > </td>
    > </tr>
    > <tr valign='top'>
    > <td>
    > <div id='CadreBorder'>
    > <a href=//*censorded</div></a>
    > <a href=//*censorded</div></a>
    > </div>
    > </td>
    > <td>
    > <div id='CadreBorder'>
    > <center><strong>TITLE</strong></center>
    > <table border='0' cellspacing='0' cellpadding='0'
    > bgcolor='#333333'>
    > <tr>
    > <td valign='top'>
    > <center>
    > ***************************************
    > <img src='images/main.jpg'>
    > ***************************************
    > </center>
    > </td>
    > <td valign='top'>
    > ...
    > <hr>
    > ...
    > </td>
    > </tr>
    > </table>
    >
    > <hr>
    > ...
    > </div>
    > </td>
    > </tr>
    > </table>
    > </body>
    > </html>

    The problem is only in IE not in firefox since the last update.
     
    Yves Lange, Jul 24, 2006
    #2
    1. Advertising

  3. Yves Lange

    Els Guest

    Yves Lange wrote:
    > Yves Lange a écrit :
    >> Hello,


    Hi :)

    >> I have a problem. I have a little marge under my images/main.jpg but i
    >> don't understand why. I tried with firefox and IE 6.0 and i couldn't
    >> find any solutions. Can somebody help me ?!?


    [snip]
    >> <td valign='top'>
    >> <center>
    >> ***************************************
    >> <img src='images/main.jpg'>
    >> ***************************************
    >> </center>
    >> </td>

    [snip]

    > The problem is only in IE not in firefox since the last update.


    You really are using those asterisks before and after the image?

    Anyway - without seeing your stylesheet, I can only guess the actual
    cause, but there's generally two things you can do to eliminate the
    space:
    1. eliminate whitespace and line-breaks in your HTML
    2. add this style rule to your stylesheet:
    td img{display:block;}

    HTH

    --
    Els http://locusmeus.com/
     
    Els, Jul 25, 2006
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.austin.rr.com

    how to download img from html img tag

    news.austin.rr.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    542
    Steve C. Orr [MVP, MCSD]
    Apr 27, 2005
  2. Patan_22

    Problem with IMG and TABLE

    Patan_22, Jan 19, 2006, in forum: HTML
    Replies:
    0
    Views:
    1,275
    Patan_22
    Jan 19, 2006
  3. Philipp Lenssen

    Problem: <img></img>

    Philipp Lenssen, Jun 27, 2005, in forum: XML
    Replies:
    15
    Views:
    806
    David Håsäther
    Jul 3, 2005
  4. Jopek
    Replies:
    7
    Views:
    429
    dorayme
    Apr 26, 2009
  5. Replies:
    7
    Views:
    208
    Tad McClellan
    Jun 22, 2006
Loading...

Share This Page