Beispiel:Background-2.html
Aus SELFHTML-Wiki
<!DOCTYPE html> <html lang="de">
<head> <meta charset="utf-8"> <title>background-image - 2</title>
<style>
body {
background-color: skyBlue;
background-image:
url("https://wiki.selfhtml.org/images/1/1c/Cloud.svg"),
url("https://wiki.selfhtml.org/images/2/2e/Flugzeug.svg");
background-repeat: no-repeat;
background-position:
top right,
50% 40%;
background-size:
200px auto,
300px auto;
color: midnightblue;
height: 100vh;
}
h1 {
margin-inline: 2em;
margin-block: 6em 5em;
}
</style>
</head>
<body>
Mehrere Hintergrundbilder
</body> </html>