concept
Multiple background layers — CSS reference
The image list establishes the number and order of layers. Earlier entries paint above later entries; the color is behind the images. Other lists repeat cyclically or are truncated to match image layers at used-value time. Use separate sizing and positioning for each layer.
Formal Syntax & Structure
css syntaxcss
See related property or function grammar.Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS image painting lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}body{background:white} #a{width:100px;height:80px;background-color:blue}#a{background-image:linear-gradient(red,red),linear-gradient(blue,blue);background-size:40px 80px,100% 100%;background-repeat:no-repeat}</style><body><div id="a" aria-hidden="true"></div><p>Decorative background sample.</p></body></html>