SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    May 2006
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem in displaying a long text in td

    Hi,

    I have a problem in displaying a long file path in <td>.
    eg., I have a long path like this :

    "E:/MyDocuments/NewFolder/MoreFiles/Development/GroupingDepartment/Officials/versions.txt"

    I have to break this path and display in two lines. I can insert <wbr> inside the path. The problem is im getting this path in the middle of some text messages dynamically from javascript.

    Is there any way to solve this.

    If path like this comes, my table width increases. I shuold avoid this. Please help.

  2. #2
    SitePoint Zealot bensheard's Avatar
    Join Date
    Jun 2006
    Location
    Cape Town | South Africa
    Posts
    117
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im not sure if this will work, but if you have your table width that this is displayed in set at a percentage, eg <table width="80%">, change the %age value to a px value. I have used this before and I think that it worked.
    Ben Sheard
    -------------
    Log all your dives easily and quickly from anywhere in the world
    www.divinglogs.cafe150.com


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
  •