background-image

Use an image as a background. Remember to choose an image that does not interfere with a visitor's ability to read your text.

Value Description
url relative - specifies the location with respect to the local directory
exact - specifies the location with the full url

Code:

h2 { background-image: url(../../pics/cssT/smallPic.jpg); }
h3 { background-image: url(http://example.com/noPicHere.jpg); }

Display:

This is a header 2 with a css background image

This is a header 3 with a css background image, but it doesn't show up because we gave the wrong url!