CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>The Background Attachment</title> <style> body{ background-image: url("https://www.tutsinsider.com/wp-content/uploads/2019/08/coast.jpg"); background-repeat: no-repeat; background-position:right center; background-attachment: fixed; /* or-------scroll*/ } </style> </head> <body> <h2>Background Attachment</h2> The image can scroll with rest of the page content or it can be fixed. Try adding some image and then see the results. </body> </html>