Skip to content

Instantly share code, notes, and snippets.

@stefl stefl/gist:4540506
Created Jan 15, 2013

What would you like to do?
Contenteditable hover and focus states
[contenteditable]:hover:after {
content: ' click to edit';
font-style: italic;
font-size: 12px;
color: #ccc;
[contenteditable]:hover, [contenteditable]:focus {
background: #FFFFD3;
[contenteditable]:focus {
padding: 5px;
[contenteditable]:focus:after {
content: '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.