Skip to content

Instantly share code, notes, and snippets.

@lucasdidthis
Created August 10, 2015 13:15
Show Gist options
  • Save lucasdidthis/5179358a2bbcddf55f5b to your computer and use it in GitHub Desktop.
Save lucasdidthis/5179358a2bbcddf55f5b to your computer and use it in GitHub Desktop.
SVG-code in backround-image definition
#logo_container{
background-image:
url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='87px' height='51px'><g id=”ink_x5F_icon”><rect x=”6" y=”9" fill=”#010203" width=”6" height=”6"></rect><rect x=”6" y=”18" fill=”#010203" width=”6" height=”15"></rect><rect x=”15" y=”27" fill=”#010203" width=”6" height=”6"></rect><rect x=”15" y=”9" fill=”#010203" width=”6" height=”15"></rect></g><g id=”ink_x5F_menu”><rect x=”42" y=”9" fill=”#010203" width=”24" height=”6"></rect><rect x=”42" y=”18" fill=”#010203" width=”24" height=”6"></rect><rect x=”42" y=”27" fill=”#010203" width=”24" height=”6"></rect></g><path id=”ink_x5F_rame” fill=”#010203" d=”M75–3H-3h-3v48h3h78h3V-3H75z M-3,42V0h33v42H-3z M75,42H33V0h42V42z”></path><polygon id=”ink_x5F_shadow” fill=”#010203" points=”78,3 78,45 0,45 0,48 78,48 79,48 81,48 81,3 “></polygon></svg>");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment