# Repeat the background image both horizontally and vertically with CSS

CSSWeb DevelopmentFront End Technology

Use the background-image property to repeat an image both horizontally and vertically. You can try to run the following code to repeat the background image

## Example

Live Demo

<!DOCTYPE html>
<html>
</html>