DIV with automatic line feed

Discussion in 'ASP .Net' started by =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Jan 10, 2005.

  1. 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>
    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Jan 10, 2005
    #1
    1. Advertising

  2. Is not it what it is doing?

    Eliyahu

    "Raed Sawalha" <> wrote in message
    news:...
    > 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>
    >
    >
    Eliyahu Goldin, Jan 10, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave Tichenor
    Replies:
    3
    Views:
    32,124
    Steven Cheng[MSFT]
    Feb 17, 2004
  2. Guest
    Replies:
    1
    Views:
    757
    Guest
    Jun 29, 2004
  3. K Viltersten

    <div ... /> and <div ...></div>

    K Viltersten, Mar 30, 2009, in forum: ASP .Net
    Replies:
    4
    Views:
    737
  4. Dwayne Madsen

    Q: Div A inside Div B is larger than Div B

    Dwayne Madsen, Jun 1, 2005, in forum: Javascript
    Replies:
    1
    Views:
    182
    David Dorward
    Jun 1, 2005
  5. mscir
    Replies:
    3
    Views:
    302
    Martin Honnen
    Jun 26, 2005
Loading...

Share This Page