Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Flexible background positioning
* Flexible background positioning
* via extended background-position
div {
background: url(
no-repeat bottom right #58a;
background-origin: content-box;
/* Styling */
max-width: 10em;
min-height: 5em;
padding: 10px;
color: white;
font: 100%/1 sans-serif;
<div>Code Pirate</div>
// alert('Hello world!');
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.