This topic is locked

How to set Max column width

3/13/2010 10:05:41 PM
ASPRunnerPro General questions
M
Mwilson91325 author

Here is the top part of my code how would i stop the colums goin to far?
***
<BODY>{BEGIN body}{$header}

{BEGIN addForm}<TABLE id="center_block{$id}" align=center>

<TBODY>

<TR>

<TD id="contents_block{$id}">{BEGIN flybody}<B class=xtop><B

class="rb1 rb1_top"></B><B class="rb2 rb2_top"></B><B

class="rb3 rb3_top"></B><B class="rb4 rb4_top"></B></B>

<DIV id="header_block{$id}" class=top>Contacts, Add new record </DIV>

<DIV id="main_block{$id}" class=xboxcontentb>

<DIV id="inmain_block{$id}" class=xboxcontentb>

{BEGIN message_block}<DIV id="message_block{$id}" class=downedit>{$message}</DIV>{END message_block}

<TABLE id="fields_block{$id}" border=0 cellSpacing=0 cellPadding=4>

<TBODY>

<TR>

<TD style="PADDING-LEFT: 15px" class=editshadeleft_b

width=150></TD>

<TD style="PADDING-LEFT: 10px" class=editshaderight_lb width=250></TD>

<TR>

<TR>

<TD style="PADDING-LEFT: 2px" class=editshade_b colSpan=2>

<TABLE border=1 cellSpacing=1 cellPadding=1 width="100%">

<TBODY>

<TR>

<TD style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal"

colSpan=6>

<P align=center>&nbsp;<STRONG><FONT size=2>Prospect

Information Start Date:</FONT></STRONG>&nbsp; {$DateStartProspect_editcontrol}</P></TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Name</TD>

<TD>&nbsp;{$FirstName_editcontrol}</TD>

<TD colSpan=2>&nbsp;{$MiddleName_editcontrol}&nbsp;</TD>

<TD colSpan=2>&nbsp;{$LastName_editcontrol}&nbsp;</TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;PPS

</TD>

<TD>&nbsp;{$Assigned_PPS_Employee_Number_editcontrol}</TD>

<TD rowSpan=5 colSpan=4>

<DIV align=center>{$ShoulderPhoto_editcontrol}</DIV></TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Group</TD>

<TD>&nbsp;{$Group_editcontrol}</TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Phone</TD>

<TD>&nbsp;{$HomePhone_editcontrol}</TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Cell</TD>

<TD>&nbsp;{$MobilePhone_editcontrol}</TD></TR>
C
clig 3/14/2010



Here is the top part of my code how would i stop the colums goin to far?
***
<BODY>{BEGIN body}{$header}

{BEGIN addForm}<TABLE id="center_block{$id}" align=center>

<TBODY>

<TR>

<TD id="contents_block{$id}">{BEGIN flybody}<B class=xtop><B

class="rb1 rb1_top"></B><B class="rb2 rb2_top"></B><B

class="rb3 rb3_top"></B><B class="rb4 rb4_top"></B></B>

<DIV id="header_block{$id}" class=top>Contacts, Add new record </DIV>

<DIV id="main_block{$id}" class=xboxcontentb>

<DIV id="inmain_block{$id}" class=xboxcontentb>

{BEGIN message_block}<DIV id="message_block{$id}" class=downedit>{$message}</DIV>{END message_block}

<TABLE id="fields_block{$id}" border=0 cellSpacing=0 cellPadding=4>

<TBODY>

<TR>

<TD style="PADDING-LEFT: 15px" class=editshadeleft_b

width=150></TD>

<TD style="PADDING-LEFT: 10px" class=editshaderight_lb width=250></TD>

<TR>

<TR>

<TD style="PADDING-LEFT: 2px" class=editshade_b colSpan=2>

<TABLE border=1 cellSpacing=1 cellPadding=1 width="100%">

<TBODY>

<TR>

<TD style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal"

colSpan=6>

<P align=center>&nbsp;<STRONG><FONT size=2>Prospect

Information Start Date:</FONT></STRONG>&nbsp; {$DateStartProspect_editcontrol}</P></TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Name</TD>

<TD>&nbsp;{$FirstName_editcontrol}</TD>

<TD colSpan=2>&nbsp;{$MiddleName_editcontrol}&nbsp;</TD>

<TD colSpan=2>&nbsp;{$LastName_editcontrol}&nbsp;</TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;PPS

</TD>

<TD>&nbsp;{$Assigned_PPS_Employee_Number_editcontrol}</TD>

<TD rowSpan=5 colSpan=4>

<DIV align=center>{$ShoulderPhoto_editcontrol}</DIV></TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Group</TD>

<TD>&nbsp;{$Group_editcontrol}</TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Phone</TD>

<TD>&nbsp;{$HomePhone_editcontrol}</TD></TR>

<TR>

<TD

style="BACKGROUND-COLOR: #cec5b0; WHITE-SPACE: normal">&nbsp;Cell</TD>

<TD>&nbsp;{$MobilePhone_editcontrol}</TD></TR>


define a % or static number on the <td> you want to limit in size
ie) <td width="20px">

M
Mwilson91325 author 3/14/2010

If this is the top of my columns then were should i put the code you suggest. It would be my understanding all the cells below should do the same correct?
<TR>

<TD style="PADDING-LEFT: 15px" class=editshadeleft_b width=150></TD>

<TD style="PADDING-LEFT: 10px" class=editshaderight_lb width=250></TD>

<TR>