Beispiel:CSS-Hintergrund-1.html

Aus SELFHTML-Wiki
Wechseln zu: Navigation, Suche
<!DOCTYPE html>
<html lang="de"> 
	<head> 
		<meta charset="utf-8">
		<title>background-image</title>
		<style>
body   { 
	background-color: DeepSkyBlue ; 
	background-image: url("https://wiki.selfhtml.org/images/1/1c/Cloud.svg");
	background-repeat:no-repeat;
	background-position: 90% top;
	color: midnightblue;
	height: 100vh;
}
h1 {
	margin-bottom: 4em;
}
		</style> 
	</head>
	<body>
		<h1>Hintergrund mit Grafik als Hintergrundbild</h1>

			<p>Dieses Beispiel demonstriert die Wirkung der Eigenschaft <code>background-image</code> in Verbindung mit einem SVG.</p>

	</body>
</html>