Interview Questions

How do I have a non-tiling (non-repeating) background image?

CSS Interview Questions and Questions


(Continued from previous question...)

54. How do I have a non-tiling (non-repeating) background image?

With CSS, you can use the background-repeat property. The background repeat can be included in the shorthand background property, as in this example:

body {
background: white url(example.gif) no-repeat ;
color: black ;
}

(Continued on next question...)

Other Interview Questions