Open links in new tab
    • Work Report
    • Email
    • Rewrite
    • Speech
    • Title Generator
    • Smart Reply
    • Poem
    • Essay
    • Joke
    • Instagram Post
    • X Post
    • Facebook Post
    • Story
    • Cover Letter
    • Resume
    • Job Description
    • Recommendation Letter
    • Resignation Letter
    • Invitation Letter
    • Greeting Message
    • Try more templates
  1. The background-repeat property in CSS is used to control how background images are repeated. By default, a background image is repeated both vertically and horizontally. However, you can use the no-repeat value to ensure that the background image is not repeated.

    Example

    body {
    background-image: url("image.jpg");
    background-repeat: no-repeat;
    }
    Copied!

    In this example, the background image will only be shown once and will not repeat.

    Other Values for background-repeat

    • repeat: The background image is repeated both vertically and horizontally (default).

    • repeat-x: The background image is repeated only horizontally.

    • repeat-y: The background image is repeated only vertically.

    • space: The background image is repeated as much as possible without clipping.

    • round: The background image is repeated and squished or stretched to fill the space.

    Using these values, you can control the repetition behavior of your background images to achieve the desired visual effect.

    Feedback
  2. background-repeat CSS property - CSS | MDN - MDN Web Docs

    Apr 20, 2026 · Shorthand for repeat no-repeat, the background image repeats horizontally only, with the edge image being clipped if the width of the paint area is not a multiple of the background image's …

  3. html - How to stop repeating images in CSS? - Stack …

    Sep 5, 2020 · If you want the background image not to repeat at all, use …

    • Reviews: 2
    • How to Make a Background Image Not Repeat - Quackit Tutorials

      Explains and demonstrates how to set a background image to not repeat in HTML. Includes interactive code examples.

    • Mastering CSS Background Cover and No-repeat - tutorialpedia.org

      Apr 4, 2026 · In this blog post, we will explore the fundamental concepts, usage methods, common practices, and best practices of using background-cover and background-no-repeat in CSS.

    • CSS background-repeat Property - GeeksforGeeks

      Aug 23, 2024 · The background-repeat property in CSS is used to repeat the background image both horizontally and vertically. It also decides whether the …

    • CSS Background Repeat (With Examples) - Programiz

      In the above example, the space value allows the background image to repeat without clipping in the edges of the background edges. The available space is …

    • background-repeat - CSS-Tricks

      Feb 17, 2015 · The differences between repeat, round, and space are clearer to see when you’re able to resize the element that contains the background image. Update the size of each example in the …

    • Unveiling the Magic of `background: linear-gradient(no-repeat)` in CSS

      Jan 16, 2026 · The no-repeat keyword is used in conjunction with the background property to ensure that the gradient does not repeat itself across the element. By default, if the gradient is smaller than the …

    • How Do I Make an Image Background Without Repeating in HTML?

      May 18, 2025 · To make an image background without repeating in HTML, you use CSS properties background-repeat and background-image. The primary method to prevent an image background …