• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with wrapping the text

 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have a table with four TDs each of width 25 % and in the fouth td the data in that will be lengthier and i dont want to wrap the data rather it should break and come in next line so that my table wont keep on growing horizontally ....but i am not able to do this untill unless i have spaces in between the data in the fourth column .........if the text doesnt have any blank space in between its not breaking rather its growing ....how can i do this with out myself inserting the spaces in between the text

any help on this would be appreciated
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
try adding this to the header of your page



Eric
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi eric

Thast not working ...........rather its pushing the other Tds to the next line ...i want this TD to appear in multiple lines

any solution would be appreciable
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Me too getting the similar problem. Do someone knows how to resolve this?
If I want to give <td> width in %, Will it be possible?

Thanks
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Deepa

I don't think there is a way to do that with out the text having some empty spaces . Rather you can use a div for the table so that the data will always stick to the grid with a scroll coming for that section.

Let me know if you get that done in a better way .

Regards
Sreenath
 
Deepa More
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for quick reply.
but if i enclose td in div, same problem I get.
the data table is enclosed in another td of main table.
I want the td to be same width, they can wrap according to data.
thanks again
 
Deepa More
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I used

It seems to be working, but doesn't work for japanese words of larger length.
Any help is appreciated!

Thanks
 
reply
    Bookmark Topic Watch Topic
  • New Topic