I am coding a (rather) complicated layout and I can't understand my own tables anymore. I want this in tables. So a header , below it on the left two textareas , on the right a bigger text area , below those three content boxes , below that I want the actual content area and the menu , and below all of it a footer. If I input a width , and after that add colspan and rowspan attributes it seems to ignore the set width and just does as it sees fit. This is the table I have (and that doesn't work): Code: <table style="width:705px;" border="1"> <tr> <td style="width:705px;text-align:center;" colspan="4"> header </td> </tr> <tr> <td style="width:302px;height:155px;" colspan="2"> textarea 1 </td> <td style="width:395px;height:286px;" rowspan="2" colspan="2"> larger text area </td> </tr> <tr> <td style="width:310px;height:131px;" colspan="2"> textarea 2 </td> </tr> <tr> <td style="width:235px;height:131px;">Box 1</td> <td style="width:235px;height:131px;">Box 2</td> <td style="width:235px;height:131px;" colspan="2">Box 3</td> </tr> <tr> <td style="width:509px;" colspan="3">Content</td><td style="width:196px;">Menu</td> </tr> <tr> <td style="width:705px;text-align:center;" colspan="4">footer</td> </tr> </table>
No , both those options create too much unnecessary code and the slicing one will make a bunch of useless images on top of that. I just need a very complicated table .
It works fine for me in FireFox. did you by any chance include: Code: <html> <head> <title></title> </head> <body> tables </body> </html> you would need that for the browser to recognize it as a html page. fully, it looks like this: Code: <html> <head><title></title></head> <body> <table style="width:705px;" border="1"> <tr> <td style="width:705px;text-align:center;" colspan="4"> header </td> </tr> <tr> <td style="width:302px;height:155px;" colspan="2"> textarea 1 </td> <td style="width:395px;height:286px;" rowspan="2" colspan="2"> larger text area </td> </tr> <tr> <td style="width:310px;height:131px;" colspan="2"> textarea 2 </td> </tr> <tr> <td style="width:235px;height:131px;">Box 1</td> <td style="width:235px;height:131px;">Box 2</td> <td style="width:235px;height:131px;" colspan="2">Box 3</td> </tr> <tr> <td style="width:509px;" colspan="3">Content</td><td style="width:196px;">Menu</td> </tr> <tr> <td style="width:705px;text-align:center;" colspan="4">footer</td> </tr> </table> </body> </html> hope this helps... [edit] oh, i had to put the html stuff in order for it to work screenshot: