- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to remove the border from an editable element with CSS?
To remove the border from an editable element, the code is as follows −
Example
<!DOCTYPE html> <html> <head> <style> body{ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; } p{ font-size: 40px; } [contenteditable] { outline: 0px solid transparent; } </style> </head> <body> <h1>Remove Contenteditable Border Example</h1> <p contenteditable="true">This is a contenteditable paragraph which you can edit</p> </body> </html>
Output
The above code will produce the following output −
On clicking the paragraph, you can edit it as in the below screenshot −
Advertisements