Last active
March 26, 2017 14:45
-
-
Save ktzanev/e9e57f9d9f16d1cefe1daff780d28cd9 to your computer and use it in GitHub Desktop.
SVG - background (GistRun)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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