Computer Applications

Harsh is working on a client's project which requires him to add a picture on the top left part of the web page. While adding the picture, Harsh realised that the picture is being repeated multiple times. Suggest the property and its value to Harsh that can be used to stop the image from getting repeated.

CSS

9 Likes

Answer

To prevent an image from repeating on a web page, Harsh can use the background-repeat property in CSS. He should set this property to "no-repeat" to ensure that the image is displayed only once and not repeated. He can use the following code:

background-repeat: no-repeat;

Answered By

5 Likes


Related Questions