Comment #3 on issue 20865 by chris.lowe.uk: Not able to set width using  
ColGroup when table-layout is fixed
http://code.google.com/p/chromium/issues/detail?id=20865

This example is still reproducible in Chrome 4.0.223.11, however if you  
move the
colgroup block outside of tbody then the code renders as expected. When  
editing the
code snippet in Netbeans 6.7 I noticed that the original location of  
colgroup was
flagged as invalid, so maybe the original snippet was invalid XHTML?   
Anyway, the
following code works:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
     <head>
         <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     </head>

     <body>
         <table style="table-layout: fixed; width: 100%;" border=1px>
             <colgroup>
                 <col width="35px">
                 <col width="65px">
                 <col width="100px">
             </colgroup>

             <tbody>
                 <tr>
                     <td colspan="4">First</td>
                 </tr>
                 <tr>
                     <td>Col-1</td>
                     <td>Col-2</td>
                     <td>Col-3</td>
                     <td>Col-4</td>
                 </tr>
         </table>

     </body>
</html>


Cheers,

Chris.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to