Results 1 to 3 of 3

Thread: In <TD> certain length/max length then force <BR>

  1. #1
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question In <TD> certain length/max length then force <BR>

    Hi, I need help please.

    In <TD> certain length/max length then force <BR>

    I would like within a <TD> to allow certain amount of char and then force a <br>.

    Is this possible, Please Assist!

    Regards

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    are you talking about a certain number of actual characters, or are you talking about a pixel dimension?

    data cells (<td>) do not have user input ability. If you are trying to limit any type of user input, it would be better done through the <input> or the <textarea> provided the input is being displayed within a form.

    you can hard code in a break <br> before the end of the data cell, however a more efficient way of obtaining the same result would be to apply a bottom margin to the data cell <td style="margin-bottom: Npx">

  3. #3
    Join Date
    Dec 2007
    Posts
    88
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Thank You

    Hi, I guess what I'm looking for is text wrap or word wrap.

    I have 2 columns with one being string build on user selection and the second column an image. When the string is long the column increases over the image. I want to text wrap/word wrap so that the text goes to a new line <br> - even a certain amount of char then <br>

    Thank you for taking time to help!

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
  •