Background images with HTML & CSS

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerUI20 min

About this video

A hands-on CSS tutorial covering how to set a background image, common problems such as images not showing or being too large, and how to make text readable over a background. It suits people learning front-end basics.

What you’ll learn

  • Link a background image from an external CSS file
  • Set a fallback background-color and avoid fixed heights
  • Control background repeat and make an image fit its container