Example code for gradients and background images

The background image in the first image is 100px high and the containers are 200x high.

With background image

With CSS gradient