JSchwarz
11-06-2007, 11:18 AM
Can someone help me create this simple table (that it is simple and I cannot do it should *not* be taken as an indication of my programming ability :rolleyes: )
The table has five columns. The entire table should be width=100% (it should fill the screen's width).
The text in the first, second and third columns should not wrap. The first second and third columns should be fixed width, just wide enough to hold the text in them and should not wrap under any circumstances. But it should also work on any screen resolution.
The fourth and fifth columns should take up the remaining screen space (therefore the width=100%). Text in the fourth and fifth columns may be lengthy.
I can get most of this to work, but not at the same time. Here is my latest (inadequate) attempt. In this incarnation, the fixed width columns (1, 2, and 3) are too long.
<table style="border-style:solid; border-width: .06em; border-color:rgb(0,0,0); font-family: arial; font-size: 10px;" width=100%><tr style="background-color: rgb(0,0,0); color:white; font-weight: bold;"><TD width=125>Date</TD><TD width=125>Editor</TD><TD width=50>Action</TD><TD>Old Value</TD><TD>New Value</TD></TR>
<TR ><TD VALIGN=TOP >} + editDate + "</TD>"
<TD VALIGN=TOP >" + editName + "</TD>
<TD VALIGN=TOP>" + action + "</TD>
<TD VALIGN=TOP>" + newVal + "</TD>
<TD VALIGN=TOP>" + newVal + "</TD>
</TR></Table>
Thank you very much for your help.
-Jeff
The table has five columns. The entire table should be width=100% (it should fill the screen's width).
The text in the first, second and third columns should not wrap. The first second and third columns should be fixed width, just wide enough to hold the text in them and should not wrap under any circumstances. But it should also work on any screen resolution.
The fourth and fifth columns should take up the remaining screen space (therefore the width=100%). Text in the fourth and fifth columns may be lengthy.
I can get most of this to work, but not at the same time. Here is my latest (inadequate) attempt. In this incarnation, the fixed width columns (1, 2, and 3) are too long.
<table style="border-style:solid; border-width: .06em; border-color:rgb(0,0,0); font-family: arial; font-size: 10px;" width=100%><tr style="background-color: rgb(0,0,0); color:white; font-weight: bold;"><TD width=125>Date</TD><TD width=125>Editor</TD><TD width=50>Action</TD><TD>Old Value</TD><TD>New Value</TD></TR>
<TR ><TD VALIGN=TOP >} + editDate + "</TD>"
<TD VALIGN=TOP >" + editName + "</TD>
<TD VALIGN=TOP>" + action + "</TD>
<TD VALIGN=TOP>" + newVal + "</TD>
<TD VALIGN=TOP>" + newVal + "</TD>
</TR></Table>
Thank you very much for your help.
-Jeff