IE doesn't recognize TD width?

I wonder why IE does not seem to recognize the specified width?

I basically have this code:

<table>
   <tr>
    <td valign="top" align="right" class="left_frame"></td>
   </tr>
</table>

CSS

.left_frame {
    background: url(images/side.gif) repeat-y; 
    width: 17px; 
}

Even if I add width = "17" inside the tags <td></td>, the width still doesn't change. This is quite complicated because the problem seems very simple.

+3
source share
1 answer

I would say because in your <td>

no content.

Try adding &nbsp;there so that the cell has some content and looks at how this happens.

Alternatively, placing heightin a cell may also work, depending on your requirements.

, , - , , .

: http://jsfiddle.net/MvBf5/

+4

All Articles