?
Solved

How to wrap the long text in <td width="10">fdsdfsdfdsfdfdfdfdjdfjkdfjkdfjdkfjf</td>

Posted on 2006-07-06
7
Medium Priority
?
901 Views
Last Modified: 2008-02-01
Hi

How to wrap the testrejttjjhji43252363253256236236263545454 text in <td width="20">?


Thank you
0
Comment
Question by:mmsreddy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 128 total points
ID: 17049821
insert some <wbr/> into the value:

testrejttj<wbr/>jhji43252363<wbr/>25325623623<wbr/>6263545454<wbr/>
0
 
LVL 35

Assisted Solution

by:Raynard7
Raynard7 earned 124 total points
ID: 17049825
you can not wrap it unless you divide it up with spaces - browsers will not wrap unbroken character strings
0
 
LVL 19

Assisted Solution

by:DreamMaster
DreamMaster earned 124 total points
ID: 17049870
There is no way to force wrapping on very long strings. If you get a string that long into a TD that small, there may be more of a design problem. The solution as so many will say, is to make sure your text is not just a long string of characters. When there's no space between the characters, the browser assumes it is one word and it won't break it.

Regards,
Max.
0
 
LVL 7

Expert Comment

by:pradeepsudharsan
ID: 17050330
Hi,

for text wrapping in TD ,use  <br> tag.

Example code:
-------------------------
<TD style="WIDTH: 20px"> gsdjbkbhjsbhf<br>gsdfdbhksjbnd<br>fhshkdfhssbhdsdbh<br>sdkhjksbhsdhshsh</TD>

output:
---------
gsdjbkbhjsbhf
gsdfdbhksjbnd
fhshkdfhssbhdsdbh
sdkhjksbhsdhshsh



Regards
Pradeep
0
 
LVL 16

Assisted Solution

by:sam85281
sam85281 earned 124 total points
ID: 17051599
If you're on an apache server, give your page a .php extension and do:

<td style='width:20px;'><?php echo wordwrap("245245234523452345234523452345345", 5, "<br>"); ?></td>

The 5 is number of characters, so adjust is a necessary to fit.

-Sam
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question