CSS | background-clip Property


The background-clip property defines how far the background (color or image) should extend within an element.

Syntax:

background-clip: border-box|padding-box|content-box|initial|inherit;

border-box: The border-box property is used to set the background color spread over the whole division.

  • Syntax:
    background-clip: border-box;
  • Example -