Interview Questions

How do I have a background image that isn't tiled?

CSS Interview Questions and Questions


(Continued from previous question...)

16. How do I have a background image that isn't tiled?

Specify the background-repeat property as no-repeat. You can also use the background property as a shortcut for specifying multiple background-* properties at once. Here's an example:

BODY {background: #fff url(watermark.jpg) no-repeat;}

(Continued on next question...)

Other Interview Questions