CSS Background-image Property

SQL     Data Warehousing     CSS     PHP     HTML     Database Normalization

CSS Tutorial  >  Background   >   Background-image

In the CSS Background-color property page, we saw that we can specify a signle color for the background. What if we want to use an image for our background? That's what the background-image property is for.

Let's look at the example below:

CSS DeclarationOutput

p {background-image:url(yp.jpg);}

With Background Image

The yellow square is image yp.jpg.

Next: CSS Background-Position

Copyright © 2015   1keydata.com   All Rights Reserved   Privacy Policy   About   Contact