How do I apply the result?
Copy the background-image declaration into the CSS rule for the element you want to fill. Give the element a height or enough content to show the background.
Build a linear background gradient with two or three colors. Set the direction and stop positions, preview the result, and copy the CSS declaration.
Use 90 degrees for a left-to-right gradient and 180 degrees for a top-to-bottom gradient. The browser measures each percentage along the line of the gradient. The length of that line depends on the shape of the box.
The first, middle and last positions must be in order. Two colors at the same position create a hard edge. Repeating mode repeats the interval between the first and last stops, so space them apart to create visible bands.
Copy the background-image declaration into the CSS rule for the element you want to fill. Give the element a height or enough content to show the background.
The angle and stop percentages remain the same, but the gradient line adapts to the proportions of the element. Preview it on an element with your final dimensions.