Results 1 to 5 of 5

Thread: Tables Question

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2000
    Posts
    1,463

    Question 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!

  2. #2
    Lively Member
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    96
    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................

  3. #3
    Fanatic Member RealisticGraphics's Avatar
    Join Date
    Jul 1999
    Location
    Arkansas
    Posts
    655
    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

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Try setting your table up like this and see if it works:

    Code:
    <table style="table-layout: fixed; width: 90%;">
        <!-- blah blah -->
    </table>
    My evil laugh has a squeak in it.

    kristopherwilson.com

  5. #5
    Frenzied Member thegreatone's Avatar
    Join Date
    Aug 2003
    Location
    Oslo, Norway. Mhz:4800 x12
    Posts
    1,333

    Talking

    Good call hobo thats the way i do things and it always worx so RESULTS OF THE TEST ?
    Zeegnahtuer?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width