By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,318 Members | 2,380 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,318 IT Pros & Developers. It's quick & easy.

DIV with automatic line feed

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.