How do u stop page content from moving down once u added a background image | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do u stop page content from moving down once u added a background image

When i added a background image to my code it moves my heading and all the other things on my page to the button please is their any way I can make it not to affect my page content

4th Jul 2019, 7:29 PM
Michael Okolie
Michael Okolie - avatar
2 Answers
+ 5
/*CSS Code:*/ html{ width:100%; height:100% body { width: 100%; height: 100%; background:url(someurl/image.png); background-attachment:fixed; background-size:100% 100%; } /*It's done*/
4th Jul 2019, 7:49 PM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
14th Jul 2019, 7:05 PM
Michael Okolie
Michael Okolie - avatar