Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>The title of the document</title> <style> body { padding: 100px; background-image: url("/uploads/media/default/0001/02/55a2f152f59bf42a99b576d44a4578ec9daa0ab6.png"), url("/uploads/media/default/0001/01/b408569013c0bb32b2afb0f0d45e93e982347951.jpeg"); background-attachment: fixed; background-position: 5px 50px; background-repeat: no-repeat, repeat; } </style> </head> <body> <h2>Background-image property example</h2> <p>The background image is positioned 5px from the left, and 50px down from the top.</p> </body> </html>