htmlcss

The background-origin property is used in CSS and certain HTML elements. This property determines the background positioning area (the origin of a background-image). background-origin does not apply when background-attachment is set to fixed.

Values


HTML example:

<body style="background-image:url('Image_1.jpg'); background-origin:padding;">
Body content.
</body>


CSS example:

body {
      background-image:url("Image_1.jpg");
      background-origin:padding;
}