background-size
background-size is a CSS property in the Background category. Sets the background colors, images, and visual effects. The syntax is background-size: auto | cover | contain | <length> | <percentage>. A typical example: background-size: cover; 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, which sets the background colors, images, and visual effects. A close relative is background-color, 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, background-color, background-image, 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.