Table with huge width leaves surrounding div

taylor-banks

New Member
I have a problem with the following code:\[code\]<div style="background: #CCCCCC;"> <table> <tr> <!-- many td's with a width of, say 40px --> </tr> </table></div>\[/code\]The problem is: since the large number of td's exceeds 100% of the browser's width, the surrounding div should grow to more than 100%, but it doesn't. In fact, the gray background stops at 100% and it looks as if the table leaves the surrounding div. I tried to use all possible "display" variants for the table, but nothing helped.Thanks
 
Top