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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Weird html behavior

Status
Not open for further replies.

gameon

Programmer
Feb 23, 2001
325
GB
This code seams fine - but if its viewed in a browser the edge of the last cell disapears...



<TABLE border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;1&quot;>
<tr valign=&quot;top&quot;>
<td bgcolor=&quot;#cccccc&quot;>


<TABLE width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot;>
<form ACTION=&quot;/campaigns/2003/global/cmlaunch/tempcal.cfm&quot; METHOD=&quot;POST&quot;>
<tr valign=&quot;top&quot; STYLE=&quot;color:white; background-color:black&quot; class=&quot;normal&quot;>
<td colspan=&quot;2&quot; id=&quot;ThisCalendar&quot;>a1Article</td>
<td colspan=&quot;2&quot; id=&quot;ThisCalendar&quot;>a2Language</td>
<td id=&quot;ThisCalendar&quot;>a8 Category</td>
<td id=&quot;ThisCalendar&quot;>a9 Select Article</td>
</tr>

<tr valign=&quot;top&quot; STYLE=&quot;color:black; background-color:white&quot; class=&quot;normal&quot;>
<td colspan=&quot;2&quot;>b1<a href=&quot;javascript:void(0);&quot; id=&quot;blue_ul_link&quot; onClick=&quot;javascript:this.blur();window.open( 'detail.cfm?ID=2824&type=Article', 'wDetail', 'menubar=0,location=0,toolbar=0,scrollbars=1,resizable=0,width=550,height=400' )&quot;>&quot;Why on earth did you change that!?”</a></td>
<td class=&quot;normal&quot; colspan=&quot;2&quot;>b1English</td>
<td class=&quot;normal&quot;>b8</td>
<td>b9<INPUT TYPE='CHECKBOX' NAME='Article' VALUE='2824'></td>
</tr>
<tr valign=&quot;top&quot;>
<td colspan=&quot;6&quot; bgcolor=&quot;#ffffff&quot;>
<input type=&quot;SUBMIT&quot; NAME=&quot;Register&quot; VALUE=&quot;Register&quot;>
</td>
</tr>
</form>
</TABLE>

</td>
</tr>

</TABLE>



Please help...

M@)
 
I really don't know if this will help but...

Try putting the form tag around the whole table.
At the moment the <form> and </form> tags are floating in a table element but not within a <tr> or <td> element.

 
Just found it. The table is actually an extract from a dynamically gererated one. (that's why there are colspans where it's not necessary).

Apparently above the colspans there needs to be some columns that the colspans 'span' across...

M@)
 
It is a an edited extract on a server side sript that builds an event calendar.

Some of the events have locations and date, other do not. They are all displayed in the same table.

As a result some of them have differing numbers of columns. Events that use less than the 6 columns have spans added automatically.

For whatever reason, when using spans there must exist the cells somewhere that are being 'spanned'. Now I know this, there are a number of corrections I could make.

In answer to the question, no it was not built with Fireworks/Dreamweaver...

M@)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top