Backgrounds
8.2
Lesson

Background Image

An image can be added to the background of any element using the background-image property.

The image link needs to be specified within url('').

In the above example, we used a large image. But if the image is smaller than the size of the element, the image repeats itself to cover the entire space as shown in the example given below: