Beispiel:CSS-Hintergrund-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">
		<title>Einbindung mehrerer Hintergrundgrafiken</title>
		<style>
body   { 
	background: 
		url("https://wiki.selfhtml.org/images/c/c8/Wolke.png")  repeat-x 80% 10%,	
		url("https://wiki.selfhtml.org/images/c/c6/Fliege.png") no-repeat 10% center, 
		linear-gradient(white, deepskyblue) ;
	color: midnightblue;
	min-height: 100vh;
	display: grid;
	grid-template-rows: 1fr 8em;
}
footer {
	background: green linear-gradient(60deg, green, yellow, sienna);	
	color: black;
}

		</style> 
	</head>
	<body>
		<h1>Einbindung mehrerer Hintergrundgrafiken</h1>
		<footer>
			<p>Dieses Beispiel demonstriert die Wirkung der Eigenschaft <code>background-image</code> in Verbindung mit der <code>linear-gradient()</code>-Funktion und mehrerer Hintergrundgrafiken.</p>
		</footer>
	</body>
</html>