Cell resizing at runtime

Discussion in 'HTML' started by Kalvin, Sep 9, 2005.

  1. Kalvin

    Kalvin Guest

    I have a very simple page to reproduce the problem I am having on a
    bigger page. There is a single table, 1 row, 1 cell. I have put a
    picture in the cell. In dreamweaver the page looks like i believe it
    should. At runtime the cell is draw just about 2 or 3 pixels higher
    than the picture.
    Here are some of the things I have tried:
    I have set the cell height to match the height of the image.
    I have streched the image to be much larger than it should be, but
    the cell displays the whole picture and this 2 pixel border at the
    bottom
    I have removed the cell size properties
    Removed the image size properties

    Any other ideas as to why the cell displays this way? There is no CSS
    or fancy anything on this page.

    This code is from the view source of the page at runtime.

    <!-- CODE STARTS HERE -->
    <html>
    <head>
    <title>Communication Center</title>

    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">

    </head>

    <body>
    <table height="77" border="0" cellpadding="0" cellspacing="0"
    bgcolor="#FFFFFF">
    <tr height="77" >
    <td bgcolor="#00FF99" height="77" >
    <img src="Building.jpg" width="438" height="77">
    </td>
    </tr>
    </table>

    </body>
    </html>


    Thanks to whoever can help.

    Kalvin
    Kalvin, Sep 9, 2005
    #1
    1. Advertising

  2. Kalvin

    Neredbojias Guest

    With neither quill nor qualm, Kalvin quothed:

    > I have a very simple page to reproduce the problem I am having on a
    > bigger page. There is a single table, 1 row, 1 cell. I have put a
    > picture in the cell. In dreamweaver the page looks like i believe it
    > should. At runtime the cell is draw just about 2 or 3 pixels higher
    > than the picture.
    > Here are some of the things I have tried:
    > I have set the cell height to match the height of the image.
    > I have streched the image to be much larger than it should be, but
    > the cell displays the whole picture and this 2 pixel border at the
    > bottom
    > I have removed the cell size properties
    > Removed the image size properties
    >
    > Any other ideas as to why the cell displays this way? There is no CSS
    > or fancy anything on this page.


    Use css and set the cell to

    line:height:0;

    --
    Neredbojias
    Contrary to popular belief, it is believable.
    Neredbojias, Sep 9, 2005
    #2
    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. Carl Mercier

    Resizing a textbox at runtime?

    Carl Mercier, Aug 26, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    1,776
    Carl Mercier
    Aug 26, 2003
  2. James Gralton

    JTable resizing row/column cell header

    James Gralton, Jul 16, 2004, in forum: Java
    Replies:
    1
    Views:
    754
    Andrew Thompson
    Jul 16, 2004
  3. tshad

    Cell resizing anomaly in IE

    tshad, Jun 13, 2005, in forum: HTML
    Replies:
    0
    Views:
    402
    tshad
    Jun 13, 2005
  4. Pil (Trustworthy from Experience)

    Resizing a div by resizing its borders

    Pil (Trustworthy from Experience), Apr 18, 2009, in forum: Javascript
    Replies:
    9
    Views:
    339
    Proper
    Apr 21, 2009
  5. Proper
    Replies:
    0
    Views:
    190
    Proper
    Apr 18, 2009
Loading...

Share This Page