Learn how to remove the border from an editable element.
Read on how to do it in this tutorial: https://www.w3schools.com/howto/howto_css_contenteditable_border.asp
Remove Contenteditable Border
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.
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_contenteditable_border
Tip: Go to our HTML contenteditable Attribute Reference to learn more about the global contenteditable attribute.
Tip: Go to our CSS [attribute] Selector to learn more about the [attribute] selector.