CSS - Background Origin

CSS Background Origin

In this tutorial, I will be showing you all you need to know about background-origin property in CSS.

The background-origin property is used to specify the position that the background should start from.

Property Values

  • border-box - This sets the background to start from the upper left corner of the border.
  • padding-box - This sets the background to start from the upper left corner of the padding.
  • content-box - This sets the background to start from the upper left corner of the content.
  • initial - This sets the property value to the default value.
  • inherit - This sets the property value to the parent element value.
ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT