How to make background image still so that only the content get scroll not the background image? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to make background image still so that only the content get scroll not the background image?

29th May 2017, 1:14 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
4 Answers
+ 2
use this rule in css: background-attachment: fixed;
29th May 2017, 1:37 AM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
.thank u sooooo much calvin for answer...now i understand.
29th May 2017, 10:41 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar
+ 1
can you write the full code i have to write....inside the head tag only
29th May 2017, 2:11 AM
A N S H U L S I N G H
A N S H U L   S I N G H - avatar