Properties

PropertyDescription
background:(Shorthand)
background-color:See: Colors
background-image:url(…)
background-position:left/center/right
top/center/bottom
background-size:cover X Y
background-clip:border-box
padding-box
content-box
background-repeat:no-repeat
repeat-x
repeat-y
background-attachment:scroll/fixed/local

Shorthand

colorimagepositionXpositionYsizerepeatattachment
background:#ff0url(a.jpg)lefttop/100px autono-repeatfixed;
background:#abcurl(b.png)centercenter/coverrepeat-xlocal;
colorimageposXposYsizerepeatattach..

Examples

background: url(img_man.jpg) no-repeat center;
 
background:
  url(img_flwr.gif) right bottom no-repeat,
  url(paper.gif) left top repeat;
 
background: rgb(2, 0, 36);
background: linear-gradient(
  90deg,
  rgba(2, 0, 36, 1) 0%,
  rgba(13, 232, 230, 1) 35%,
  rgba(0, 212, 255, 1) 100%
);