• 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

Pre Tag text wrapping and problem of div in div

 
Ranch Hand
Posts: 385
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello i am facing a probleem, kinddly reply.

1) There is a table in div. That Div loads dynamically containing some values which are feed on click.

2) There is a (div in td) inside that Table(which is already in div). That particular (Div in td) have some text which is formatted with tag <pre>.

3) there is a text box when i write text there the text changes in (div in td)

4)

Text is somewhat like :-

1|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
2|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
3|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
4|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
5|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa

5) suppose i have to change safsfa in fourth row. and i write new value for that "safsfa", the value updates in that (Div in td) through inner HTML

___________________

that div in td is 100% in width.....and outer div is 90% in width and lying in centre.

When text increases in div in td its size also increases and words are not wrapping and coming in one line



1|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
2|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
3|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
4|sadsad*safsaF*safsfa*CHANGECHANGECHANGECHANGECHANGECHANGECHANGECHANGE*sfafas*sfafsa*sfasaf*sfafsa*sfasfa
5|sadsad*safsaF*safsfa*safsfa*sfafas*sfafsa*sfasaf*sfafsa*sfasfa


This increases size of the div.

I want to wrap the text to next line in div in td. i used wrap property but not able to do so
and i could not leave pre tag option.

i am suffering from this since two weeks. not getting what do do

Kindly help

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic