This forum is now read-only. Please use our new forums at

HTML Basics Forum

View Course

185 points
Submitted by
Jaydeep Dholakia
over 2 years ago

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;

1 vote


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

2965 points
Submitted by
over 2 years ago

0 votes


Have you tried a google search
== discussions /opinions ==
css How could I set full size background image

== the Book ==
css set full size background image
fullscreen background image css

3701 points
Submitted by
over 2 years ago