Beispiel:SVG-Sprite-3.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css">
  <title>SVG-Sprite - 3</title>
  <style>
a { color: steelblue; }
a:focus, a:hover { color: red; }
			
svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
</style>
</head>

<body>
<h1>SVG-Sprite - 3</h1>
<svg>
	<symbol id="house" viewBox="0 0 96 96">
		<path d="M40,13 L1,48 H12 V80 H32 V56 H48 V80 H68 V48 H79z"/>
	</symbol>
</svg>
<h2>
	Home
	<svg>
		<use href="#house"/>
	</svg>
</h2>
<p>
	<a href="">
		sweet home
		<svg>
			<use href="#house"/>
		</svg>
	</a>
</p>
</body>
</html>