Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

trouble with table width and "textarea"...

Status
Not open for further replies.

duckyboyz

Programmer
Mar 28, 2002
57
US
I have table i've set the width to 80%, even put width 80% in the <textdata width=80%> tag. the next cell goes off the screen. the next cell is a checkbox...not sure if that makes any difference. is there something funky that the "textarea" field is doing. the field source for the textarea is a memo text field varchar 2000 i believe. is there any way to get my table to stay at 80% width of the browser screen?
 
First of all, textarea has no width attribute. That could be your problem. In HTML you define the width and height of textarea with rows and columns, rows="x" cols="y", respectively. You can set the width through css however using style="width: 80%;". Try that, if it doesn't work, show us your complete code or even better, a test sample of the page.
 
here's a sample of the page. like i previously stated. the table(with the texarea in the cell) is not rendering at 80% of the width. i will try using columns.

<!-- Branching Details Page -->
<P class=sectionheading>MTSA Branching Comments
<HR>

<!-- Branching Information -->
<div id=divInfo>
<table width=80%>
<tbody>
<tr>
<td>Branching Code:</td>
<TD valign=bottom>
<label class=5char id=txtBranchCode name=txtBranchCode datasrc=#dcBranching datafld=branch_cd >
</td>
<td> &nbsp </td>
<td>Branching Title:</td>
<td valign=bottom>
<label class=50char id=txtBranchTitle name=txtBranchTitle datasrc=#dcBranching datafld=branch_nm >
</td>
</tr>
<tr>
<td>Specialty Name:</td>
<td>
<INPUT class=5char id=txtSpecName name=txtSpecName maxlength=5 datasrc=#dcBranching datafld=specialty_nm onkeyup="EnableSubmit()">
</td>
<td> &nbsp </td>
<td>Office Symbol Name:</td>
<td>
<input class=50char id=txtOfficeSym name=txtOfficeSym maxLength=50 datasrc=#dcBranching datafld=office_symbol_nm onkeyup="EnableSubmit()">
</td>
</tr>
</tbody>
</table>

<BR>

<table id="tbdComments" name="tbdComments" datasrc=#dcBranchingComments WIDTH="80%" BORDER=1 CELLSPACING=1 CELLPADDING=1>
<thead>
<tr class=header bgcolor=Silver align=left>
<td bgcolor=Silver>&nbsp</td>
<td>Comments</td>
<td>Delete</td>
</tr>
</thead>
<tbody >
<tr>
<td><label id=lblSeqId datafld=sequence_id></td>
<td><TEXTAREA dataFld=comments_tx id=txtComments onkeyup="TextAreaLengthCheck me, 2000" style="HEIGHT: 70px;WIDTH 75%"></textarea></td>
<td align=center><input type=checkbox id=chkDelComment name=chkDelComment" onclick=EnableSubmit></td>

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

<input type=button style="background-color:#c0c0c0" id=btnAddComm value="Add Comments" onclick="AddComments">
<BR>
</div
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top