From the course: CSS: Enhancing Website Graphics

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use the background style

Use the background style - CSS Tutorial

From the course: CSS: Enhancing Website Graphics

Start my 1-month free trial

Use the background style

- [Instructor] The last several videos have covered a wide range of styles, and your head might be spinning trying to keep track of all of them. In this video, you'll learn how to replace all of those styles with one single style, but first, let's review the eight styles we've already studied in previous videos. We have background-color, used to set the color of the background, background-image to create an image for the background, background-position to place that image, background-size to set the size of the image, background-repeat to determine how the image is tiled across the background, if at all, background-attachment to attach the background to an element or part of the browser window, background-origin to set the origin of the background for positioning the background image, and background-clip to define the extent of the background across the content box, padding box, and border box. Those eight styles can be combined within a single style named, no surprise here…

Contents