Skip to main content
Known Participant
October 18, 2006
Answered

html table and need to be in upper left corner

  • October 18, 2006
  • 2 replies
  • 1194 views
hello,
i currently have this table with a description and fieldvarname outputs on the center of the table
i need to have it display in the upper left corner in the table.
what do i have to change in my code below?
thanks
<table width="100%" height="79" border="1">
<tr><td width="55%" height="75"><strong> Description</strong>: #fieldvarname#
</table>
This topic has been closed for replies.
Correct answer
Perhaps the easiest way (not necessarily the best way) is to remove the align attributes from the TD tag and place a Nested table in the cell. Otherwise you could try and use Div tags for each... something like

<table width="100%" height="79" border="1">
<tr>
<td align="left" valign="top" width="55%" height="75">
<div style="height:50; text-align:right;"><strong> Description1</strong>: fieldvarname1</div>
<div"><strong> Description2</strong>: fieldvarname2</div>
</td>
</tr>
</table>

2 replies

Correct answer
October 23, 2006
Perhaps the easiest way (not necessarily the best way) is to remove the align attributes from the TD tag and place a Nested table in the cell. Otherwise you could try and use Div tags for each... something like

<table width="100%" height="79" border="1">
<tr>
<td align="left" valign="top" width="55%" height="75">
<div style="height:50; text-align:right;"><strong> Description1</strong>: fieldvarname1</div>
<div"><strong> Description2</strong>: fieldvarname2</div>
</td>
</tr>
</table>
Inspiring
October 18, 2006
add align="left" and valign="top" in your td tag and see what happens additionally your missing
the closing /td and /tr tags:

<table width="100%" height="79" border="1">
<tr><td align="left" valign="top" width="55%" height="75"><strong> Description</strong>: #fieldvarname#</td>
</tr>
</table>
Known Participant
October 18, 2006
thanks !
it actuall works !
in addition
what if i needed
<strong> Description2</strong>: #fieldvarname2# to be in the upper right
and
<strong> Description</strong>: #fieldvarname3# to be in lower left

and inside the table
thanks