How do I wrap the text in a div tag if it is too long x-wise. I don't want to just use a scroll bar, I was hoping there was some wrap text command. This is my div, note (it's updated dynamicly): <div id="output" style=" width: 200px; height: 300px; overflow-y: scroll; background-color:#333333; border-style: inset; border-width: thin; border-color:#000000"></div> HTML: Thanks. ~imozeb p.s. When I try to log into this forum, it sometimes just redirects me to the login page!?! Is anyone else having this problem?
if you set the width of the div tag constant using style sheet and the texts inside the div tag are standard words and spaces, then all the text will wrap. If you try to type a continous letter like this dddddddddddddddddddddddddddddddddd it will not wrap. If you are acquring th text from the database , you have to insert the page break depending upon the new line character eg using classic asp strText = Replace(strText,vbcrlf,"<br/>")