Google News
logo
CSS - Interview Questions
Which property is used for controlling image repetition in the background?
The background-repeat property is responsible for controlling the image repetition. Using this property, we can repeat an image horizontally, vertically, or both. It has the following different values:
 
repeat: it repeats the image horizontally and vertically
repeat-x: it repeats the image horizontally
repeat-y: it repeats the image vertically
no-repeat: it does not repeat the image.
 
Example :
 
<style>
   div {
          background-image:url(freetimelearn_logo.jpeg);
          background-repeat:no-repeat;
         }
</style>
Advertisement