Skip to content

Instantly share code, notes, and snippets.

@arcreative
Last active December 14, 2015 20:48
Show Gist options
  • Save arcreative/5145987 to your computer and use it in GitHub Desktop.
Save arcreative/5145987 to your computer and use it in GitHub Desktop.
Inline SVG styles
/* Make sure you set a dimension, or the SVG will attempt to fill all available space! */
svg {
width: 64px;
height: 64px;
}
/* all of our SVG images have a .svg-main class so we can change their base colors predictably */
svg .svg-main {
fill: white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment