Coding for Beginners: Recap #53—Background Size, Gradients, and Background Clip

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

A short beginner CSS lesson for designers on sizing background images and gradients with background-size, including which values to avoid across browsers, and on background-clip and its border-box, padding-box, content-box and text values.

What you’ll learn

  • Set background-size with both a width and a height for consistent results across browsers
  • Use background-clip to control whether a background extends under the border, padding or content
  • Apply background-clip: text to limit a background to the text itself