Skip to content

Instantly share code, notes, and snippets.

@ZeeAgency
Created January 5, 2012 09:53
Show Gist options
  • Save ZeeAgency/1564487 to your computer and use it in GitHub Desktop.
Save ZeeAgency/1564487 to your computer and use it in GitHub Desktop.
Untitled
body {
font-family: Trebuchet MS, Helvetica, Arial, sans;
}
style {
display: block;
margin: 10px;
padding: 10px;
white-space: pre;
font-family: Monaco, monospace;
line-height: 3em;
background: #EEE;
box-shadow: rgba(0, 0, 0, 0.5) 0 2px 10px inset;
border-radius: 5px;
}
<h3>Editable Style</h3>
<style type="text/css" contenteditable>div {background: red;} /* There's no <div> in the HTML */
p {padding: 10px; background: red; color: white;}
p {/* Type "Enter" just after this comment ->*/background: green;}
</style>
<p contenteditable>
Type some text and some new lines here too
</p>
{"view":"split","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment