SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2001
    Location
    Russia
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    HTML question with <table> tag

    I have the following HTML page:

    <html>
    <head>
    <title>Page</title>
    </head>
    <body>
    <table width="100%">
    <tr>
    <td width="50%">
    11111111111111111111111111111111111111111111111111111111111111111111111111111112222222222222222222222222222222222222222222222222222222222222222222222222222222
    </td>
    <td width="50%">
    1111111111
    </td>
    </table>
    </body>
    </html>

    I wish it to fit the screen 100% (and no more).
    And each table data had exactly 50% width.
    How can I do it?
    Regards,
    Alexander Saprykin
    http://www16.brinkster.com/saprykin

  2. #2
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The code you posted is correct, just that an unbroken string of characters in cell #1 will prevent your TABLE from being displayed properly.

    If that is what you have to work with then you cannot get a proper display.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2001
    Location
    Russia
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello creole.

    I think there must be a solution to make cell #1 and cell #2
    50% each.

    Look at this forum, what would be if I post a question with a subject like
    1111111111111111111111111111111111111111111111111111111111111111111111111111111222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222 ?
    Regards,
    Alexander Saprykin
    http://www16.brinkster.com/saprykin

  4. #4
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look at the forum now that you posted that long string of text. The forum is broken. It's because as far as the browser knows, the long string is all one word.

    Now, let me say that if you are using some sort of server side scripting language (PHP/ASP) then yes, there IS a solution. You can read in a string (such as the long number) and split it at a specified length.

    That would be something to ask in the Server-Side scripting forum.

    Good luck
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  5. #5
    SitePoint Zealot
    Join Date
    Jun 2001
    Location
    Russia
    Posts
    107
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using ASP,
    Thank you.
    Now I know to handle this problem
    Thank you again
    Regards,
    Alexander Saprykin
    http://www16.brinkster.com/saprykin

  6. #6
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    daft maybe but shouldn't there be a </TR> tag at the end also?

  7. #7
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good catch Sarah, I'm sure that he just left it out when typing it up here.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  8. #8
    blonde.... Sarah's Avatar
    Join Date
    Jul 2001
    Location
    Berkshire, UK
    Posts
    7,442
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I know wasn't sure but hey can't but help can it!


Bookmarks

Posting Permissions

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