background-clip

background-clip lets you control how far a background image or color extends beyond an element’s padding or content.

.frame {
  background-clip: padding-box;
}
Values
  • border-box is the default value. This allows the background to extend all the way to the
Avatar of Chris Coyier
Chris Coyier on (Updated on )