

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Background Repeat Using CSS
The CSS background-repeat property is used to define how the background image repeats itself.
Syntax
The syntax of CSS background-repeat property is as follows −
Selector { background-repeat: /*value*/ }
Example
The following examples illustrate CSS background-repeat property −
<!DOCTYPE html> <html> <head> <style> body { background-image: url("https://www.tutorialspoint.com/images/microsoftproject.png"); background-repeat: repeat; } </style> </head> <body> </body> </html>
Output
This gives the following output −
Example
<!DOCTYPE html> <html> <head> <style> ul { background-image: url("https://www.tutorialspoint.com/images/questions-answers.png"); background-repeat: space repeat; } </style> </head> <body> <h2>Tutorials</h2> <ul> <li>Java</li> <li>C#</li> <li>Etherum</li> <li>DBMS</li> <li>OS</li> </ul> </body> </html>
Output
This gives the following output −
- Related Questions & Answers
- Background Repeat in CSS
- Repeat the background image with CSS
- Usage of background-repeat property in CSS
- Repeat the background image both horizontally and vertically with CSS
- Setting Background Position using CSS
- Setting Background Image using CSS
- CSS border-image-repeat
- Styling Background of Elements Using CSS
- Setting up Background Color using CSS
- CSS background property
- CSS Background Properties
- Repeat a linear gradient with CSS
- Repeat a radial gradient with CSS
- CSS Multi background property
- CSS background-size property
Advertisements