Last active
March 26, 2017 14:40
-
-
Save ktzanev/908731b7b4249646cf176e3085c8b1ec to your computer and use it in GitHub Desktop.
SVG - circle/ellipse (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 commande SVG</title> | |
<link rel="stylesheet" href="styles.css"> | |
</head> | |
<body> | |
<h1>Exemple commande SVG</h1> | |
<svg viewBox="-100 -50 200 100"> | |
<circle fill="magenta" | |
cx="0" cy="0" r="30" /> | |
<ellipse fill="none" stroke="yellow" transform="rotate(30)" | |
cx="0" cy="0" rx="15" ry="45" /> | |
</svg> | |
</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
svg { | |
border: 1px solid #eef; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment