array and image wrong cell height size

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • chepiok

    array and image wrong cell height size


    I have a very basic table with a fixed height of 40 pixels that contains an
    image of 40 pixels height. Works on mozilla, forebird, konkeror, safari. The
    problem is that on IE6 PC, WinXP SR1, the cell is too high (around 2 or 3 pixels,
    as seen with the color background used to check the size) and is not set to the
    40 pixels height.

    Thanks

    Here is the code :

    <HTML>
    <HEAD><TITLE>Ka huma</TITLE></head>
    <BODY>
    <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 bgcolor='#00FF0 0'>
    <TR>
    <TD bgcolor=black height=40 align=center>
    <img height=40 border=0 width=465 src="titre.gif" >
    </TD>
    </TR>
    </TABLE>
    </BODY></HTML>

    --
    Ce message a ete poste via la plateforme Web club-Internet.fr
    This message has been posted by the Web platform club-Internet.fr


  • Markus Ernst

    #2
    Re: array and image wrong cell height size

    "chepiok" <dsfsf@fd.dsf > schrieb im Newsbeitrag
    news:2003117-103256-488640@foorum.c om...[color=blue]
    >
    > I have a very basic table with a fixed height of 40 pixels that contains[/color]
    an[color=blue]
    > image of 40 pixels height. Works on mozilla, forebird, konkeror, safari.[/color]
    The[color=blue]
    > problem is that on IE6 PC, WinXP SR1, the cell is too high (around 2 or 3[/color]
    pixels,[color=blue]
    > as seen with the color background used to check the size) and is not set[/color]
    to the[color=blue]
    > 40 pixels height.
    >
    > Thanks
    >
    > Here is the code :
    >
    > <HTML>
    > <HEAD><TITLE>Ka huma</TITLE></head>
    > <BODY>
    > <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0[/color]
    bgcolor='#00FF0 0'>[color=blue]
    > <TR>
    > <TD bgcolor=black height=40 align=center>
    > <img height=40 border=0 width=465 src="titre.gif" >
    > </TD>
    > </TR>
    > </TABLE>
    > </BODY></HTML>
    >
    > --
    > Ce message a ete poste via la plateforme Web club-Internet.fr
    > This message has been posted by the Web platform club-Internet.fr
    >
    > http://forums.club-internet.fr/[/color]

    Try <img height=40 border=0 width=465 src="titre.gif" style="display: block">

    As Images are inline objects they are placed on the text baseline which is
    away from the bottom of the cell.

    HTH
    Markus


    Comment

    • Martin Ernst

      #3
      Re: array and image wrong cell height size

      Am 07 Nov 2003 09:32:56 GMT schrieb chepiok:

      Try

      <TR><TD bgcolor=black height=40 align=center><i mg height=40 border=0
      width=465 src="titre.gif" ></TD></tr>

      all in one line without spaces. Sometimes, there is one space too much that
      is displayed by IE.

      Martin

      Comment

      Working...