- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Repeat the background image both horizontally and vertically with CSS
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
<!DOCTYPE html> <html> <head> <style> body { background-image: url("https://www.tutorialspoint.com/videotutorials/images/tutor_connect_home.jpg"); } </style> </head> <body> <h1>Background Image</h1> </body> </html>
- Related Articles
- Repeat the background image with CSS
- Background Repeat in CSS
- Background Repeat Using CSS
- How to center an element vertically and horizontally with CSS?
- How to center a button element vertically and horizontally with CSS?
- Specify the background image with CSS
- CSS border-image-repeat
- Set the Background Image Position with CSS
- How to style background image to no repeat with JavaScript DOM?
- Usage of background-repeat property in CSS
- Show the background image only once with CSS
- Achieve Responsiveness for background image with CSS
- Set background image as fixed with CSS
- Set the background image of an element with CSS
- CSS background-image property

Advertisements