Skip to content

Instantly share code, notes, and snippets.

@marklin-latte
Last active March 23, 2016 15:37
Show Gist options
  • Save marklin-latte/134c21025f569b53e757 to your computer and use it in GitHub Desktop.
Save marklin-latte/134c21025f569b53e757 to your computer and use it in GitHub Desktop.
Flexible background positioning
/**
* Flexible background positioning
* via extended background-position
*/
div {
background: url(http://csssecrets.io/images/code-pirate.svg)
no-repeat bottom right #58a;
background-position: right 20px bottom 10px;
/* Styling */
max-width: 10em;
min-height: 5em;
padding: 10px;
color: white;
font: 100%/1 sans-serif;
}
<div>Code Pirate</div>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment