HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Learn how to remove the border from an editable element
By default, when you write inside an element that has contenteditable
set to true
, that element gets a border around on focus. However, you can use CSS to remove the border:
Step 1) Add HTML:
<p contenteditable="true">This is an editable paragraph.</p>
Step 2) Add CSS:
Use the [attribute]
selector to select all elements that are contenteditable, and remove the border with the outline
property: