Coding for Beginners: CSS Basics #42— What is the background-origin property?

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

BeginnerDesign Engineering4 min

About this video

A beginner lesson in the Coding for Beginners series for designers, explaining the CSS background-origin property. It uses short demos with exaggerated padding and border values to show how border-box, padding-box and content-box change where a background image is positioned.

What you’ll learn

  • Explain what the CSS background-origin property controls
  • Compare border-box, padding-box and content-box background positioning
  • Apply background-origin to an element's background image