Understanding Propagation and Why It Matters

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

IntermediateUI7 min

About this video

Explains how CSS background propagation works, showing how backgrounds declared on the body or html element apply to the whole page, including background-image and background-position behaviour. It is aimed at people building web pages who want to understand a confusing part of CSS.

What you’ll learn

  • Explain how a background set on the html or body element propagates to the canvas
  • Predict how background-image and background-position behave when propagated
  • Choose which element to style so a page background renders as intended