Windows Vista Tips

Windows Vista Tips > Newsgroups > Internet Explorer > HTML Rendering Problem - Table Layout with COLSPAN - problem in IE 7 (Vista and XP)

Reply
Thread Tools Display Modes

HTML Rendering Problem - Table Layout with COLSPAN - problem in IE 7 (Vista and XP)

 
 
Mike Sloan
Guest
Posts: n/a

 
      11-25-2007
Internet Explorer does not correctly layout tables with the COLSPAN
attribute when cells in the table contain input boxes and they have values
set that are wider than the first column they are under - despite having the
COLSPAN attribute sent.

I actually noticed this problem developing ASP.NET 2, but have distilled out
the resultant generated HTML to confirm it is a HTML rendering problem. An
example of this issue can be illustrated by the following HTML (this HTML
works fine in Mozilla 2)

Without any data the HTML renders fine....

<html>
<body style="margin:0px;border0px;">
<table width="100%">
<tr>
<td style="width: 35%;"><LABEL>Flat
Number:</LABEL></td>
<td colspan="3" style="padding-right:4px;"><INPUT
id="txtSubBuildingName" style="Width:100%;"/></td>
</tr>
<tr>
<td style="width:
35%;"class="fieldname"><LABEL>House Number:</LABEL></td>
<td style="width: 40px;"><INPUT
id="txtBuildingNumber" style="Width:100%;"/></td>
<td style="width: 50px; text-align: right;"
class="fieldname"><LABEL>Name:</LABEL></td>
<td style="padding-right:4px;"><INPUT
id="txtBuildingName" style="Width:100%;"/></td>
</tr>
<tr>
<td style="width: 35%;"><LABEL>Street:</LABEL></td>
<td colspan="3" style="padding-right:4px;"><INPUT
id="txtStreet" style="Width:100%;"/></td>
</tr>
</table>
</body>
</html>

With data however it doesn't render as expected....

<html>
<body style="margin:0px;border0px;">
<table width="100%">
<tr>
<td style="width: 35%;"><LABEL>Flat
Number:</LABEL></td>
<td colspan="3" style="padding-right:4px;"><INPUT
id="txtSubBuildingName" style="Width:100%;"/></td>
</tr>
<tr>
<td style="width:
35%;"class="fieldname"><LABEL>House Number:</LABEL></td>
<td style="width: 40px;"><INPUT
id="txtBuildingNumber" style="Width:100%;"/></td>
<td style="width: 50px; text-align: right;"
class="fieldname"><LABEL>Name:</LABEL></td>
<td style="padding-right:4px;"><INPUT
id="txtBuildingName" style="Width:100%;"/></td>
</tr>
<tr>
<td style="width: 35%;"><LABEL>Street:</LABEL></td>
<td colspan="3" style="padding-right:4px;"><INPUT
id="txtStreet" style="Width:100%;" value="wwwwwwww wwwwww wwwwwwww
wwwwwww"/></td>
</tr>
</table>
</body>
</html>

Can someone from Microsoft confirm this is a bug and put in on the list for
a future service pack

Kind Regards
Mike Sloan


 
Reply With Quote
 
 
 
Reply

« IE 6 crashes | IE 7 »
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2007 table cell property problem in Vista Dick De Vries Windows Vista General Discussion 1 05-10-2008 03:34 AM
IE6/7 Bug in rendering table header when displayed in scrolled DIV Erik van Barneveld Internet Explorer 0 06-26-2007 09:30 AM
IE7 Layout Rendering Oddities Justin Spindler Internet Explorer 2 10-30-2006 01:31 AM
IE 7 Vs IE 6 rendering of div / table tags Jon Manley Internet Explorer 0 05-08-2006 07:47 PM
Table rendering bug Breno Damas Internet Explorer 0 05-02-2006 03:09 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59