-
Tables Question
Hi,
I'm hoping there is a solution to my problem.
I'm setting a table with at 90% and it works out great for what I need. My VB program is creating the table actually. And whats happening is sometimes the data going in the table has a line that has no spaces and causes the table to go wider than 90%. It forces it to be wider than I want since it does not wrap with no spaces in it. I know I can count the characters in the line going in and insert a space if its so long. Is there any html coding to force it to wrap instead?
Thanks!
-
if you are giving your input form vb.. why not check the length of the words in vb.? if a word is to long add a space. the past it to the html page.
much easier..
-
I think that the way you are doing it is the correct way. Some browsers, I think, will wrap it while others will display it in one long line.
I think that bekkel has a point. It would be much easier to count the characters in the string and add a space... Actually I'd do something more like adding "<br>" instead of a space. That way you are a little more in control of the layout.
-
Try setting your table up like this and see if it works:
Code:
<table style="table-layout: fixed; width: 90%;">
<!-- blah blah -->
</table>
-
Good call hobo thats the way i do things and it always worx so RESULTS OF THE TEST ?