Coding for Beginners: CSS Basics #38— An Example of How to Adding a Background Image

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerWeb Design3 min

About this video

This short lesson shows how to load a background image into the body with CSS, stop it repeating with background-repeat, and let a white content section overlap it. It is aimed at designers who are new to HTML and CSS.

What you’ll learn

  • Set a background image on the page body with the background-image property
  • Stop a background image from repeating with background-repeat
  • Overlap a content section on a background image using fixed height and padding