CSS में बैकग्राउंड रिपीट का उपयोग यह सेट करने के लिए किया जाता है कि वेब पेज पर बैकग्राउंड इमेज कैसे दोहराई जाती है। इसके लिए बैकग्राउंड-रिपीट प्रॉपर्टी का इस्तेमाल करें। निम्नलिखित गुण मान हो सकते हैं -
background-repeat: repeat|repeat-x|repeat-y|no-repeat|initial|inherit;
उदाहरण
आइए अब एक उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url("https://www.tutorialspoint.com/images/Swift.png");
background-repeat: repeat-x;
background-color: blue;
color: white;
}
.demo {
text-decoration: overline underline;
}
</style>
</head>
<body>
<h1>Details</h1>
<p class="demo">Examination Center near ABC College.</p>
<p class="demo2">Exam begins at 9AM.</p>
</body>
</html> आउटपुट

उदाहरण
आइए अब एक और उदाहरण देखें -
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-image: url("https://www.tutorialspoint.com/images/Swift.png");
background-repeat: repeat-y;
background-color: orange;
color: white;
}
.demo {
text-decoration: overline underline;
}
</style>
</head>
<body>
<h1>Details</h1>
<p class="demo">Examination Center near ABC College.</p>
<p class="demo2">Exam begins at 9AM.</p>
</body>
</html> आउटपुट
