From the course: CSS: Scrolling and Parallax
Unlock this course with a free trial
Join today to access over 22,600 courses taught by industry experts.
Background properties - CSS Tutorial
From the course: CSS: Scrolling and Parallax
Background properties
- [Instructor] One of the most common types of elements to animate with CSS are backgrounds. So, let's take some time to make sure we understand, the important properties that you can use when working with backgrounds. Now backgrounds are a series of properties of box elements, and they are controlled by using the background property, with a bunch of different options. So you can for example say, background color, background image, background repeat and so on and so forth. Now the most common ones are color and image, you can use background color, of course to change the color of the background. Background image allows to place one or more images, or gradients and you can put one or more in sequence, and they stack one right after the other. The next option is, repeat backgrounds, repeat by default, so there's sort of like a wallpaper pattern and you can turn that off if you want to which is what you want to do most of the time.…