If you want to make your website more attractive, read this snippet and learn how to add both a background-image and CSS3 gradient to the same element.