Coding for Beginners: CSS Basics #45— Background Size

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 lesson explains the CSS background-size property for designers learning HTML and CSS. It covers the cover and contain values, percentage, length and auto sizing, and how background-color shows where an image does not fill its container.

What you’ll learn

  • Explain how background-size cover and contain scale an image within its container
  • Set background-size with percentages, lengths or auto values
  • Tell apart background-size written as auto, auto for two images from auto auto for one