5 works

Background Image That Doesn't Scroll on Webpage


dashboard+ Project

Posted by @mishka #css #html

body{
    background-image: url("img_tree.gif");
    background-repeat: no-repeat;
    background-attachment: fixed;
}
content_copyCopy to Clipboard

A background-image that will not scroll with the page (fixed). The background-attachment property sets whether a background image scrolls with the rest of the page, or is fixed.

https://www.w3schools.com/CSSref/pr_background-attachment.asp

>> Browse more code snippets

more_vert