Background

Introduction

The background properties are used to define the background effects on elements.

Background Properties

PropertyValuesDescription
Colorcolor, transparentSets the background color of an element.
Imageurl, gradient, noneSets background image for an element.
Sizeauto, length, cover, containThe size of the background image.
Blend Modenormal, multiply, screen, overlay, darken, lighten, color-dodge, saturation, color, uminosity
Defines the blending mode of background color and image.
Fixedscroll, fixed, local
Sets whether a background image is fixed or scrolls with the rest of the page.
Horizontal PositionnumberSets the horizontal starting position of a background image.
Vertical PositionnumberSets the vertical starting position of a background image.
Tilerepeat, repeat-x, repeat-y, no-repeatSets if background image will be repeated.
Cliptext, border, padding, content
Defines how far the background should extend within the element.
Was this article helpful?
YesNo

Couldn't Find Your Answer?

Get quality customer support with our professional support team.

Create A Support Ticket
Live Editor