Height of column increases automatically in IE 8

Discussion in 'HTML & Website Design' started by Sameer Wanwey, Jul 3, 2013.

  1. #1
    Hi

    I have an image with 5x5 size when I try to include this image in table with one column as per below HTML code, I dont know somehow Height of that column increases to 5x17 instead of 5x5

    <table border="0" cellspacing="0" cellpadding="0" style="margin: 0 0 0 0;" leftmargin="0"
    rightmargin="0" topmargin="0" bottommargin="0">
    <tbody>
    <tr height="3">
    <td width="5px" height="5px" style="height: 5px; top: 0px; left: 0px; vertical-align: bottom;
    margin-top: -50px;">
    <img alt="" src="Images/box_a1.gif" width="5" height="5" />
    </td>
    </tr>
    </tbody>
    </table>

    I am using IE8 but same HTML is present on some live website and on this site its working fine on same IE version but I have tried to implement it, somehow its height increases and my HTML design disturb
     

    Attached Files:

    Sameer Wanwey, Jul 3, 2013 IP
  2. SystemOAD

    SystemOAD Well-Known Member

    Messages:
    548
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    195
    Digital Goods:
    1
    #2
    Why are you using a table out of interest?

    Its likely an IE bug, can you post the url of the page where you are having the problem so I can take a look at it live? Also the url of the working page would be good so I can check if they have any css hacks for IE :)
     
    SystemOAD, Jul 3, 2013 IP