CSS - Multiple Backgrounds

Multiple Backgrounds

In this tutorial, I will be showing you how to use multiple backgrounds in your website using the background or background-image property in CSS.

Backgrounds are laid on top one another. Each background value is separated using a comma (,) as shown in the example below.

In the example above, the dove_02.png will be placed on top, while the color skyblue will be placed last (bottom).

note
NOTE:

Only the last background can be specified as a background color.


ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT