This topic is locked

Column Width

5/11/2007 2:45:52 AM
PHPRunner General questions
A
asimha author

I love the new Beta 4.0 - Well done the Team!!
I know this subject has been raised several times, but is there anyway (apart from editing the source code before each build) to define fixed width columns?
I have several columns which are too large and some that are too small.
Any help much appreciated,

Thank you

Andre

Alexey admin 5/11/2007

Andre,
there is no reliable way to specify fixed-width table column in HTML.

Browsers will stretch them if needed.
Give me a link to your project along with description of what you want to do and I'll help you.

Post it here or send to support@xlinesoft.com.

S
slobbering_dog 9/4/2007

Hello,
I have been trying to create fixed width columns in my HTML table - even specifying the width in pixels, column by column doesn't appear to work.
Should I be using the cell properties or table properties ?
Was there a satisfactory solution to this problem when posted by Andre previously ?
Thanks in advance,
slobbering_dog

Alexey admin 9/6/2007

Hi,
there is no reliable way to specify fixed-width table column in HTML.

Browsers will stretch or shrink them if needed.

S
steveh 8/1/2008

I think the real issue here is that phprunner is setting the width for headers on the TD of the inner table, rather than the TD of the cell that will contain the table: look at this:
<td align="middle" class="headerlist">

<table cellspacing="0" cellpadding="0" border="0" align="center">

<tbody>

<tr>

<td style="width: 8%;"><a href="Report_2_list.php?orderby=aYear" class="tablelinks">Year</a>

</td>

<td/></tr></tbody></table>

</td>
Note that the 8% is on the td that is inside the header, I think it should be like this:
<td align="middle" class="headerlist" style="width: 8%;">

<table cellspacing="0" cellpadding="0" border="0" align="center">

<tbody>

<tr>

<td><a href="Report_2_list.php?orderby=aYear" class="tablelinks">Year</a>

</td>

<td/></tr></tbody></table>

</td>
And the same bug applies to the totals (where the width in the outer container is set to 100%, completely throwing out the alignment).
Also, the "apply to whole column" doesn't, you need to set the widths for the header, data and any totals (including those that don't have totals) all seperately.
Agreed on the issue of fixed width tables, but this then gives us a fighting chance!
This is causing me major issues, could this fix be in the August release (please!!)????