#myDIV
background-image
650
url('paper.gif')|url('img_tree.gif'), url('paper.gif')|conic-gradient(red, yellow, green)|linear-gradient(red, yellow, blue)|radial-gradient(red, green, blue)|repeating-conic-gradient(red 10%, yellow 20%)|repeating-linear-gradient(red, yellow 10%, green 20%)|repeating-radial-gradient(red, yellow 10%, green 15%)
This demo shows some different techiques on how to set a background image of a HTML element.
CSS background-image
Demo of the different values of the background-image property.
Click the property values below to see the
result:
Play more with the code in our Tryit yourself editor:
Try it Yourself ❯