C
Claude Schneegans
Hi,
I'm trying to have an horizontal scrolling DIV having a width which is
the rest available in a 2 columns table
in which the first is of unknown width.
See http://www.contentbox.com/claude/test/test.htm
It works fine under Mozilla, but MSIE 6 refuses to size the DIV correctly.
Any idea for a workaround?
If I set the width of the div to any numeric value, I get this width for
the div,
but what I want is width=100% of the width available in the containing TD.
width=100% works well under Mozilla, but IE undestands 100% of the
document,
not the cell in the table.
Here is the code:
<TABLE WIDTH="600" BORDER="1" CELLSPACING="1" CELLPADDING="0" BORDER="1">
<TR>
<TD VALIGN="top">
Select area of unknown width
</TD>
<TD WIDTH="100%" VALIGN="top">
<DIV STYLE="overflow-x: scroll;">
<TABLE><TR>
<TD><TEXTAREA COLS="40" ROWS="" STYLE="float:left">this
is the rest of the content which we want to scroll if it is latger than
the space left by the Select area at left.</TEXTAREA></TD>
<TD><TEXTAREA COLS="40" STYLE="float:right">this is the
rest of the content which we want to scroll if it is latger than the
space left by the Select area at left.</TEXTAREA></TD>
<TD><TEXTAREA COLS="40" STYLE="float:right">this is the
rest of the content which we want to scroll if it is latger than the
space left by the Select area at left.</TEXTAREA></TD>
</TR></TABLE></DIV>
</TD>
</TR>
</TABLE>
I'm trying to have an horizontal scrolling DIV having a width which is
the rest available in a 2 columns table
in which the first is of unknown width.
See http://www.contentbox.com/claude/test/test.htm
It works fine under Mozilla, but MSIE 6 refuses to size the DIV correctly.
Any idea for a workaround?
If I set the width of the div to any numeric value, I get this width for
the div,
but what I want is width=100% of the width available in the containing TD.
width=100% works well under Mozilla, but IE undestands 100% of the
document,
not the cell in the table.
Here is the code:
<TABLE WIDTH="600" BORDER="1" CELLSPACING="1" CELLPADDING="0" BORDER="1">
<TR>
<TD VALIGN="top">
Select area of unknown width
</TD>
<TD WIDTH="100%" VALIGN="top">
<DIV STYLE="overflow-x: scroll;">
<TABLE><TR>
<TD><TEXTAREA COLS="40" ROWS="" STYLE="float:left">this
is the rest of the content which we want to scroll if it is latger than
the space left by the Select area at left.</TEXTAREA></TD>
<TD><TEXTAREA COLS="40" STYLE="float:right">this is the
rest of the content which we want to scroll if it is latger than the
space left by the Select area at left.</TEXTAREA></TD>
<TD><TEXTAREA COLS="40" STYLE="float:right">this is the
rest of the content which we want to scroll if it is latger than the
space left by the Select area at left.</TEXTAREA></TD>
</TR></TABLE></DIV>
</TD>
</TR>
</TABLE>