Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2005
    Posts
    70
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How can I make a table completely static and unable to change size when displayed?

    I have a script which generates the text inside the table, but the text is large and increases the size of the table, when I want it to just go to the next line down. How can I stop it from changing size (any script language would help, especially javascript, PHP, basic HTML).This is the script:

    Code:
    <table width="594" height="471" border="0">
    <tr>
    <th width="588" height="415" align="left" valign="top" bgcolor="#666666" class="style2" scope="col"><? include "http://localhost/content1_knn.... ?>
    <p><span class="style3"><? include "http://localhost/content6_knn.... ?></span></p></th>
    </tr>
    <tr>
    <td height="62"> </td>
    </tr>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Table flexibility

    There's no absolute way to dictate table dimensions; this is the nature of a HTML table, it will always attempt to accomodate the data within.
    However, if the text in question contains spaces it should wrap in those, unless there are long passages without any spaces.

    It would help to see the actual resulting page, instead of an include.
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

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