[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] wxHTML table header alignment

From: Greg Chicares
Subject: [lmi] wxHTML table header alignment
Date: Mon, 27 Oct 2008 02:36:21 +0000
User-agent: Thunderbird (Windows/20080914)

Here's an example where '<th valign="bottom"' doesn't do what I'd like
(using wx-2.8.9 with no patches). With a default-width html window, the
seventh and eighth columns are not bottom aligned. If I narrow the html
window until it requires a scrollbar, then only the second, third, fifth,
and ninth columns are bottom aligned; the first four columns then look
something like this, as closely as I can depict them in a monospace font:

  Net.              Guar  Death.
Outlay Specified Account Benefit   [other columns elided for simplicity]
          Amount   Value

In the columns that aren't bottom aligned, there's an extra space at the
end of each "row" except the last, which I've indicated with '.' above.
That extra space isn't a big problem; I mention it in case it helps to
explain why those headers aren't bottom aligned.

I'd like these column headers to be bottom-aligned, regardless of the
width of the html window they're displayed in. Is there a way to achieve
that by writing this html code differently?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Let me illustrate...</title>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr align="right">
<th valign="bottom" width="8%">Net Outlay</th>
<th valign="bottom" width="8%">Specified Amount</th>
<th valign="bottom" width="8%">Guar Account Value</th>
<th valign="bottom" width="8%">Guar Base Death Benefit</th>
<th valign="bottom" width="8%">Experience Rating Reserve</th>
<th valign="bottom" width="8%">Curr Net Claims</th>
<th valign="bottom" width="8%">Experience Rating Net COI Charge</th>
<th valign="bottom" width="8%">Experience Rating Projected COI Charge</th>
<th valign="bottom" width="8%">Experience Rating K Factor</th>
<th valign="bottom" width="8%">Guar COI Charge</th>
<th valign="bottom" width="8%">BOY Lives Inforce</th>
<th valign="bottom" width="8%">Curr Sep Acct Charges</th>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]