background-position property. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. In this tag a
, W3Schools is optimized for learning and training. You can also prevent an image from repeating vetically, while allowing it to repeat horizontally (and vice versa). A String, representing how a background-image is repeated. Is it possible to apply CSS to half of a character? The background-repeat Property Now we'll use the CSS background-repeat property. and the CSS background-image property: Add a background image on a HTML element: You can also specify the background image in the