I am working with a div
element that has the attribute contenteditable="true"
. To achieve a two-column layout, I have added the CSS property -webkit-column-count: 2
. However, I am facing an issue in Safari where when I type in the first column and press Enter, the cursor jumps to the second column. This behavior is not observed in Chrome.
<div class="textarea" contenteditable="true"></div>
.textarea
{
width:400px;
height:300px;
-webkit-column-count:2;
-webkit-column-gap:25px;
border:1px solid #000;
}
You can view the mockup here on jsfiddle.