Forked from oswaldoacauan/contentEditable-placeholder.css
Created
August 7, 2016 14:01
-
-
Save thurt/9a3757226e0e0604e44d1fdc60d9093f to your computer and use it in GitHub Desktop.
CSS - Placeholder support for contentEditable elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ * | |
* Exemple: | |
* <div contenteditable="true" placeholder="Enter text here..."></div> | |
* | |
*/ | |
[contenteditable=true]:empty:before { | |
content: attr(placeholder); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment