Positions | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Positions

In webpage ,I placed a background image and I created a box on top it and I need to make so that the image will be static in the background and all other parts in the webpage will be scrolling what should I set for each of them?

27th Dec 2017, 4:49 PM
Adarsh.n. Bidari
Adarsh.n. Bidari - avatar
1 Answer
+ 2
You should use background-attachment: fixed https://www.w3schools.com/cssref/pr_background-attachment.asp
27th Dec 2017, 4:58 PM
Iman Jamaatlou
Iman Jamaatlou - avatar