Home >  Blossary: Basics of CSS  >  Term: background
background

The background shorthand property sets all the background properties in one declaration.

The properties that can be set, are: background-color, background-position, background-size, background-repeat, background-origin, background-clip, background-attachment, and background-image.

It does not matter if one of the values above are missing, e.g. background:#ff0000 url(smiley.gif); is allowed.

Syntax:

background-color: Specifies the background color to be used;

background-position: Specifies the position of the background images;

background-size: Specifies the size of the background images;

background-repeat: Specifies how to repeat the background images;

background-origin: Specifies the positioning area of the background images;

background-clip: Specifies the painting area of the background images;

background-attachments: Specifies whether the background images are fixed or scrolls with the rest of the page;

background-image: Specifies ONE or MORE background images to be used;

0 0

Basics of CSS

Category: Education

Total terms: 12

Other terms in this blossary

Creator

  • Bagar
  •  (Silver) 753 points
  • 100% positive feedback
© 2024 CSOFT International, Ltd.