sepoto Posted January 28, 2011 Share Posted January 28, 2011 Let's say that I specify a fixed width cell like this:<table width="1100" border="2"><tr><td>TitleHere</td><td>AirTime</td><td width="100%">Channels here: 100, 200, 300</td></tr></table>Here is what is happening. Sometimes my list of channels is so long that the size of my table will somehow automatically become much wider than I want it to be. The channels cell never goes to a new line like I would want it to. I thought if I specified a width for my table that it would stay at that width but that does not seem to be the case. Can someone provide some more information?Thank you. Link to comment Share on other sites More sharing options...
ShadowMage Posted January 28, 2011 Share Posted January 28, 2011 Try giving the cell a width other than 100%. It's trying to make the cell 100% of its parent's width (ie, the table's width[well, technically the row, but you get the idea]) which it can't do because there are other cells in that row. Link to comment Share on other sites More sharing options...
Ingolme Posted January 29, 2011 Share Posted January 29, 2011 I believe setting the CSS "table-layout: fixed" should prevent the table from stretching. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.