And of course there's another problem with using a div inside a td, and
applying the border to the div. The height of the content of each cell in
the row varies. Some have one line, some two lines, some three lines of
content. The table row takes whatever height it needs to take to accommodate
the content, but the divs of the "shorter" contents don't expand to be 100%
height unless I can define a height to the td, which I can't.
<table>
<tr>
<td class="cell1"><div>long content here that might wrap to three
lines</div></td>
<td class="cell2"><div>short content</div></td>
<td class="cell3"><div>short content</div></td>
<td class="cell4"><div>long content that might be 2 or 3 lines long</td>
</tr>
<tr>
<td class="cell1"><div>long content here that might wrap to three
lines</div></td>
<td class="cell2"><div>short 1 line</div></td>
<td class="cell3"><div>short 1 line</div></td>
<td class="cell4"><div>long content that might be 2 or 3 lines long</td>
</tr>
</table>
td {
vertical-align: bottom;
}
td div {
margin: 0 0 10px 0;
border: solid #993333;
}
td.cell1 div {
padding: 10px 0 10px 10px;
border-width: 1px 0 1px 1px;
}
td.cell2 div {
padding: 10px 0;
border-width: 1px 0 1px 0;
}
td.cell3 div {
padding: 10px 0;
border-width: 1px 0 1px 0;
}
td.cell4 div {
padding: 10px 0 10px 10px;
border-width: 1px 1px 1px 0;
}
The result is a "row" border that looks something like this:
|------------
| -----|
| -------- |
|-------------------------|
I'm a bit frustrated that the cleanest solution I can think of is to insert
"empty" rows between the content rows, to break them apart.
Jeniffer
Jeniffer C. Johnson
OffLead Productions
http://www.offlead.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/