Table with % in IE

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi everybody,

I have a problem with a TABLE in Internet Explorer

<table width="80%" border="0" cellpadding="0" cellspacing="0">
    <td id="left_cell" width="73" nowrap bgcolor="#99CC33">dd</td>
    <td id="this_cell">&nbsp;</td>
    <td id="right_cell" width="11" nowrap bgcolor="#99CC33">&nbsp;</td>
    <td colspan="3">$nbsp;</td>
    <td colspan="3">&nbsp;</td>

The cell "this_cell" have a dynamic width, "left and right_cell" have a

This code work in Mozilla Firefox. "left and right_cell" take their
width and "this_cell" is resizing.

In Internet Explorer, all my cells are resize !

You can test with the code, you'll see :'(

Someone have an idea to resolve this problem ?


PS : Sorry for my english

Re: Table with % in IE

Scripsit Djay:

Quoted text here. Click to load it

The odds are that you shouldn't be using a table in the first place.

Quoted text here. Click to load it

I copied your code snippet and tested it. IE 7 shows (both in standards and
quirks mode) the left and right column as declared. So you need to be more
specific about your reference to IE, and you should probably post the URL of
a real page where the problem can be observed.

It is true that IE often treats declared widths as suggested minimum widths
(which is how they have been defined in HTML), but I cannot see such a
problem in your example.

Quoted text here. Click to load it

It's better than your HTML code! :-)

Jukka K. Korpela ("Yucca")

Site Timeline