Coding for Beginners: Code Quiz #99— The Background-Size Property

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering6 min

About this video

This short lesson explains what the CSS background-size property does when a background image does not fill its space, and introduces the cover and contain values. It is part of a beginner series on HTML and CSS for designers.

What you’ll learn

  • Explain what happens when a background image does not fill its container
  • Compare the cover and contain values of background-size
  • Apply background-size in CSS to fit an image to a space