|
I have a table inside a div.
This table should be at a width of approximately 60% of the screen. however, there are fields within the table that at times, for some reason make the table wider than it should be. The is program generated. I've gone down through it and for a while, it's fine, and then at some point it gets to a field which is wider than it can accomodate, and there's a nowrap on the <td>, so something happens to the table that makes it wider. This is really frustrating.
Originally, this table was fine (to my knowledge), but I had to add a navigation div which floats next to the table to the left. So I figured that if I reduced the width of the table, that would solve things, but it doesn't. Also, because the table seems to have its own width problem, the table doesn't go next to the navigation div, but below it.
I went and and cut the report in half or so, and then it situates itself to the right of the nav div just fine.
My question is, can I put this table inside a div and set a width to that div, and have that width strictly enforced so that the table can't go beyond that?
|