Using background images


show more Using background images provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts show less
please wait ...

Using background images

In addition to using the background property to specify a color for an element's background, you can also use it to display an image. In this movie I want to introduce the background image property and discuss the syntax surrounding it. So here I have the background-image.htm file open, again, you can find that one in the 05_09 directory. We saw the same paragraph on the page, slightly different size, a little bit smaller this time around, and the first thing I want to do is to go ahead and apply a background image to this property.

So on a line just below the margin declaration there I want to do background-image. Okay, now this one has some pretty specific syntax, because one of the things that we have to do is we have to tell the browser where to go find this image at, and we do that by using URL and opening up some parentheses, and then passing the path to the image in there. You might notice if you can look over here in the 05_09 directory that we have a folder named _images and in...

Using background images
Video duration: 5m 11s 8h 52m Beginner

Viewers:

Using background images provides you with in-depth training on Web. Taught by James Williamson as part of the CSS: Core Concepts

Subject:
Web
Software:
CSS
Author:
please wait ...