Hello,
I want to get a table with two cells, but I'd like to set its width dimensions using styles only:
+++++++++++++++++++++++++++++++++
+ cell 1 + cell 2 +
+ + +
+++++++++++++++++++++++++++++++++
table width = Tw = browser width (100%)
cell1 width = C1w = 200px (fixed)
cell2 width = C2w = Tw - C1w
As you see, the table width has the width of the browser, even if I resize it. The first cell has a fixed width of 200px (always). Then second cell will have a variable width.
Using Html only, it is possible and very easy, but it seems impossible if I use CSS (at least in IE)
HTML example:
<table width="100%">
<tr><td width="200" nowrap>cell 1</td>
</tr>
<tr><td width="100%">cell 2</td>
</tr>
</table>
table-layout doesn't seem to be a good solution because when I resize the screen, the content of the second cell is clipped.
Thanks for your suggestions.
JOSE CARLOS ARAMBURU
josecarloaa@hotmail.com
I want to get a table with two cells, but I'd like to set its width dimensions using styles only:
+++++++++++++++++++++++++++++++++
+ cell 1 + cell 2 +
+ + +
+++++++++++++++++++++++++++++++++
table width = Tw = browser width (100%)
cell1 width = C1w = 200px (fixed)
cell2 width = C2w = Tw - C1w
As you see, the table width has the width of the browser, even if I resize it. The first cell has a fixed width of 200px (always). Then second cell will have a variable width.
Using Html only, it is possible and very easy, but it seems impossible if I use CSS (at least in IE)
HTML example:
<table width="100%">
<tr><td width="200" nowrap>cell 1</td>
</tr>
<tr><td width="100%">cell 2</td>
</tr>
</table>
table-layout doesn't seem to be a good solution because when I resize the screen, the content of the second cell is clipped.
Thanks for your suggestions.
JOSE CARLOS ARAMBURU
josecarloaa@hotmail.com