467,907 Members | 1,104 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

DIV with automatic line feed

Is it possible to make the following div to generate automatic line feed when
user start writing and reaches the DIV bounderies like in textarea, the case
I have when type a continous chars without white space it wont give a new
line but when feed a white space it give an automaic new line :-

<DIV id=HTMLEditor dir="ltr" contentEditable=true
style="BORDER-RIGHT: #1979e1 1px groove; BORDER-TOP: #1979e1 1px
groove; VERTICAL-ALIGN: middle; OVERFLOW: auto; BORDER-LEFT: #1979e1 1px
groove; WIDTH: 560px; BORDER-BOTTOM: #1979e1 1px groove; HEIGHT: 98%;
BACKGROUND-COLOR: white"
align=left runat="server" width="99%"
height="100%" enableviewsate="false"></DIV>
Nov 19 '05 #1
  • viewed: 2073
Share:
1 Reply
Is not it what it is doing?

Eliyahu

"Raed Sawalha" <Ra*********@discussions.microsoft.com> wrote in message
news:F8**********************************@microsof t.com...
Is it possible to make the following div to generate automatic line feed when user start writing and reaches the DIV bounderies like in textarea, the case I have when type a continous chars without white space it wont give a new
line but when feed a white space it give an automaic new line :-

<DIV id=HTMLEditor dir="ltr" contentEditable=true
style="BORDER-RIGHT: #1979e1 1px groove; BORDER-TOP: #1979e1 1px groove; VERTICAL-ALIGN: middle; OVERFLOW: auto; BORDER-LEFT: #1979e1 1px
groove; WIDTH: 560px; BORDER-BOTTOM: #1979e1 1px groove; HEIGHT: 98%;
BACKGROUND-COLOR: white"
align=left runat="server" width="99%"
height="100%" enableviewsate="false"></DIV>

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Lyle A. Sieren | last post: by
1 post views Thread by Programmer | last post: by
4 posts views Thread by Carsten | last post: by
1 post views Thread by Nalaka | last post: by
1 post views Thread by rengaraj | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.