new line in div

  •  04-24-2009, 9:01 PM

    new line in div

    hi
     
    how can set the div when user press "Enter" in div for the new line purpose ?
     
    right now the html code which generate by editor is
     
    <div style="left: 11px; width: 104px; position: absolute; top: 11px; height: 104px">Type text here
            <div>das</div>
            <div>dasd</div>
            <div>das</div>
            </div>
     
    but how can i change it to
     
    <div style="left: 11px; width: 104px; position: absolute; top: 11px; height: 104px">Type text here
            <br>das        <br>dasd        <br>das        </div>
     
    what cause me problem now is .......inside a div .... it can fit another div .....
     
    how can i set it to just a div when a layer is inserted?
     
    thanks
View Complete Thread