The CSS background-image property sets the background images for an element. The images are drawn on successive stacking context layers, with the first specified being drawn as if it is the closest to the user. The borders of the element are then drawn on top of them, and the background-color is drawn beneath them.
How the images are drawn relative to the box and its borders is defined by the background-clip and background-origin CSS properties.
If a specified image cannot be drawn (for example when the file denoted by the specified URI cannot be loaded), browsers handle them as if it was the none value.


background-image: none
background-image: url(
background-image: inherit


        <title>CSS Tutorials</title>
            body {
                background-image: url("images/darkpattern.png");
            div {
                background-image: url("images/foo.png"), url("images/bar.png");
            p {
                background-image: none;
            i am with two backgrounds foo.png and bar.png
            I am with no background image

You may also like...