background
background is a CSS property in the Background category. Sets the background colors, images, and visual effects. The syntax is background: <bg-color> <bg-image> <position> / <size> <repeat> <attachment> <origin> <clip>. A typical example: background: #fff url(bg.png) center/cover no-repeat; It is commonly applied to markup such as <div class="demo">Sample</div> Browser support: Chrome 1+, Firefox 1+, Safari 1+, Edge 12+. A close relative is isolation, which sets the background colors, images, and visual effects. A close relative is background-color, which sets the background colors, images, and visual effects. A close relative is background-image, which sets the background colors, images, and visual effects. More about this category: CSS background properties for colors, images, and gradients. Related Background entries: isolation, background-color, background-image, background-size, background-position, background-repeat, background-attachment, opacity. This page is part of the free CSS Reference documentation covering 841+ properties, selectors, functions, and at-rules, each with syntax, values, examples, and browser support.