Over and over and over I see: css style width. It does not work (Google Chrome). How can I set a mandatory width on a td tag? https://codepen.io/SLSCoder/pen/yLapGvB?editors=1111
I simplified your html to this <div id="divMain"> <table> <tr> <td>BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</td> <td>blah</td> </tr> </table> </div> HTML: and your css to this #divMain { width: 75vw; max-width: 75vw; border: 1px solid red; padding: .5vw; } table { display: block; width: 98%; max-width: 98%; border: 2px solid green; } td { width: 50%; max-width: 50%; overflow: hidden; line-break: anywhere; overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; border: 1px dashed pink; padding: .5vw; } Code (CSS): and it all looks great You will be able to take out the second column and expand the width if that's what you need.
Thanks. That's an awful lot just to mandate a width on a td tag. It didn't exactly work either. You set the width to 50%; When I deleted the 2nd td tag the width went back to 100% (but not over this time). I suppose it was just too much to ask the css dev team to allow us to control the width of a td tag. https://codepen.io/SLSCoder/pen/yLapGvB?editors=1111