HTML CSS examples for CSS Property:background-image
Set the scrolling background image.
<!DOCTYPE html> <html> <head> <style> body {<!-- w w w. ja va 2s .c o m--> background-image: url('https://www.java2s.com/style/demo/Opera.png'); background-repeat: no-repeat; background-attachment:scroll; }. </style> </head> <body> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> <p>The background-image is fixed. Try to scroll down the page.</p> </body> </html>