Show Output
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Example of CSS background-repeat property</title> <style> body { background-image: url("/examples/images/gradient.png"); background-repeat: repeat-x; } </style> </head> <body> <h1>Repeating background image</h1> <p><strong>Note:</strong>By default, a background image will be repeated both "vertically" and "horizontally".</p> </body> </html>