|
-
Aug 31st, 2003, 08:43 PM
#1
Thread Starter
Frenzied Member
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!
-
Sep 1st, 2003, 05:54 AM
#2
Lively Member
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..
http://www.raketje.com coming..............soon................
-
Sep 1st, 2003, 09:58 AM
#3
Fanatic Member
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.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Sep 1st, 2003, 01:46 PM
#4
Stuck in the 80s
Try setting your table up like this and see if it works:
Code:
<table style="table-layout: fixed; width: 90%;">
<!-- blah blah -->
</table>
-
Sep 7th, 2003, 08:46 AM
#5
Good call hobo thats the way i do things and it always worx so RESULTS OF THE TEST ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|