CSS Fundamentals: Backgrounds
Published in
6 min readApr 24, 2020
In this tutorial, we’ll learn how to change the backgrounds of CSS elements.
The background
property allows you to control the background of any element. It’s a shorthand property, so we can write multiple properties in one code block. For example:
body {
background:
fixed /* attachment *
blue; /* color */
content-box…