Category: Snippets

This category contains small code snippets for examples and experimentation. These are meant to provide inspiration or a starting point to build your own project off of. Please feel free to use any of the code here but I would appreciate citing me as the source.

Stacking Gradients

In case you didn’t know you can stack backgrounds in CSS. This is especially useful with gradients. Technically you’re stacking the background-image property but the background shorthand property works just as well. To do this just list all the gradients, colors, images, etc. that you want separated by spaces. The backgrounds will be applied stacked …

Read more...