Skip to content

Instantly share code, notes, and snippets.

@ktzanev
Last active March 26, 2017 14:45
Show Gist options
  • Save ktzanev/e9e57f9d9f16d1cefe1daff780d28cd9 to your computer and use it in GitHub Desktop.
Save ktzanev/e9e57f9d9f16d1cefe1daff780d28cd9 to your computer and use it in GitHub Desktop.
SVG - background (GistRun)
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Exemple utilisatoin SVG</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Exemple utilisatoin SVG</h1>
<div class="exemple cochons"</div>
</body>
</html>
.exemple {
border: 1px solid #eef;
height:300px;
width:300px;
display:inline-block
}
.cochons {
background: url(cochon.svg);
background-size: 100px 100px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment