Mrkunlex
Definition and Usage
The background shorthand property sets all the background properties in one declaration.
The properties that can be set, are: background-color,
background-image, background-position, background-size, background-repeat, background-origin,
background-clip, and background-attachment.
It does not matter if one of the values above are missing, e.g. background:#ff0000 url(smiley.gif); is allowed.
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: lightblue url("img_tree.gif") no-repeat fixed center;
}
</style>
</head>
<body>
<h1>The background Property</h1>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
<p>This is some text</p>
</body>
</html>
Copy code
https://www.w3schools.com/cssref/css3_pr_background.asp