remove the border when element is focused code example Example: css contenteditable outline [contenteditable]:focus { outline: 0px solid transparent; }