Quote:
quote:Originally posted by rakesh_mscit
Default the text insied the table will get wrapped. Only exemption is when there is a text without any space between it and it is large enough to occupy the complete width of the window then the table gets stretched. There is no solution for this as far as i know. Only thing you can do is write some code which will check for this special case and inserts a line break [br tag] after few characters so that the text forcibly gets to next line.
|
Actually there is a simpler solution with CSS. Include a style rule for your table cells
td {
overflow:auto;
}
If the contents of the table cell, overflow the available content, it will add scrollbars. Scrollbars in this context frequently don't look great, but if the alternative is blasting a hard-won design then it's a good trade off. The nice thing is that, if the content doesn't overflow, auto will NOT introduce scrollbars; they're only added if necessary.
-------------------------
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of
www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.