Coding for Beginners: CSS Basics #48— Is There a Shorthand for Background Images?

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering4 min

About this video

This short lesson in the Coding for Beginners series explains how the CSS background shorthand property combines background color, image, repeat, position and origin into one declaration. It is aimed at designers learning HTML and CSS basics.

What you’ll learn

  • Write a CSS background shorthand declaration that combines a color and an image
  • Set background repeat and position in a single declaration
  • Use background origin and clip with padding to control where an image sits