Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
77
rated 0 times [  81] [ 4]  / answers: 1 / hits: 55090  / 15 Years ago, sun, february 14, 2010, 12:00:00

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 focus is somewhere else.

How do I remove that border?



Thanks


More From » jquery

 Answers
79

Set the outline property to 0px solid transparent;. You might have to set it on the :focus state as well, for example:



[contenteditable]:focus {
outline: 0px solid transparent;
}

[#97573] Thursday, February 11, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eastonb

Total Points: 498
Total Questions: 91
Total Answers: 102

Location: Tanzania
Member since Wed, Feb 24, 2021
3 Years ago
;