background-image प्रॉपर्टी का डिफ़ॉल्ट व्यवहार
डिफ़ॉल्ट रूप से, CSS में background-image प्रॉपर्टी का उपयोग करके सेट की गई इमेज क्षैतिज (horizontally) और लंबवत (vertically) दोनों दिशाओं में रिपीट होती है। इसे नियंत्रित करने के लिए background-repeat प्रॉपर्टी का उपयोग किया जाता है।
उदाहरण
नीचे दिए गए उदाहरण में, बैकग्राउंड इमेज डिफ़ॉल्ट रूप से दोनों दिशाओं में रिपीट होगी।
<!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>
टिप: यदि आप इमेज को रिपीट नहीं करना चाहते, तो background-repeat: no-repeat; का उपयोग करें।