This forum is now read-only. Please use our new forums! Go to forums

banner
Close banner
0 points
Submitted by Jaydeep Dholakia
over 8 years

How could I set full size background image

I have tried the bellow code in CSS but it makes the page slow. The is not massive but yet it make the page slow even after it has loaded fully:

html,body { background: url(“”)fixed; background-size: cover; background-repeat: no-repeat; background-position: center; }

Answer 56122fba95e378010e000228

1 vote

Permalink

i would personally read this and this, also, i wouldn’t set the image on both html and body.just html. Also, make sure the image is not to large, if need be, shrink the image

points
Submitted by stetim94
over 8 years

Answer 5611721b9113cbd3ce0002a6

0 votes

Permalink

Have you tried a google search == discussions /opinions == css How could I set full size background image site:stackoverflow.com

== the Book == css set full size background image site:developer.mozilla.org or fullscreen background image css site:jquery.com

points
Submitted by Leon
over 8 years