Coding for Beginners: CSS Basics #46— Using Background-Size with Gradients

Maribel Gray on YouTubeWatch on YouTube

SaveMark complete

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

BeginnerDesign Engineering3 min

About this video

A short CSS lesson for designers on how background-size changes a linear gradient, comparing pixel, percentage and auto values. It explains why width and height should both be specified and how background-repeat affects the tiled result.

What you’ll learn

  • Set background-size with both a width and a height for consistent rendering
  • Compare pixel, percentage and auto sizing on a CSS linear gradient
  • Use background-repeat to tile a gradient background