Created
September 29, 2011 06:41
-
-
Save timjgleeson/1250121 to your computer and use it in GitHub Desktop.
Content Editability
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
div {background-color: #fec0ff; height: 300px; width: 400px;} | |
div[contentEditable = "true"] {background-color: #bada55;} | |
</style> | |
</head> | |
<body> | |
<div onclick="this.contentEditable = true;"> | |
Blah Blah Blah | |
</div> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment