When I set a pre element to contenteditable and put focus in it for editing, it receives a dotted border around it that doesn\'t look very nice. The border isn\'t there when foc
You can also add the :read-write pseudo-class to style elements that are editable.
For instance (jsFiddle):
.element:read-write:focus {
outline: none;
}
Read more here on codrops.
The
:read-writepseudo-class selector is supported in Chrome, Safari, and Opera 14+, and on iOS. It is supported with the-moz-prefix in Firefox in the form:-moz-read-write. The:read-writeselector is not supported in Internet Explorer and on Android.