I have a problem that can be simplified to the following: I have a
table with three columns. I need the middle column to be fixed width,
let's say 100px. The other two columns I want to be variable width,
such that one (say the left column) will minimize its width to the
smallest it can be while still fitting a short line of text (no more
than 32 characters) on a single line with no breaks. The right column
I would then want to maximize its width to the remainder of the width
on the screen.
My current solution is as follows:
<table width="100%" border="1" cellpadding="0p x"
cellspacing="0p x"><tbody><tr>< td>
Minimize
</td><td style="width:10 0px; min-width:100px; ">
Fixed
</td><td style="width:10 0%; ">
Maximize
</td></tr></tbody></table>
It works in everything but IE (as usual), which doesn't preserve the
fixed width column. Is there a better solution, and if not, how do I
fix this in IE, aside from the natural inclination to direct all IE
users to a page that says "IE sucks".
table with three columns. I need the middle column to be fixed width,
let's say 100px. The other two columns I want to be variable width,
such that one (say the left column) will minimize its width to the
smallest it can be while still fitting a short line of text (no more
than 32 characters) on a single line with no breaks. The right column
I would then want to maximize its width to the remainder of the width
on the screen.
My current solution is as follows:
<table width="100%" border="1" cellpadding="0p x"
cellspacing="0p x"><tbody><tr>< td>
Minimize
</td><td style="width:10 0px; min-width:100px; ">
Fixed
</td><td style="width:10 0%; ">
Maximize
</td></tr></tbody></table>
It works in everything but IE (as usual), which doesn't preserve the
fixed width column. Is there a better solution, and if not, how do I
fix this in IE, aside from the natural inclination to direct all IE
users to a page that says "IE sucks".
Comment