Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// I want to make this one div green
document.body.appendChild(document.createElement('div')).innerHTML
= '<style>div { background-color: #82b74b; }</style><div>Make me green!</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment