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

HTML Basics Forum

View Course

145 points
Picture
Submitted by
Jaydeep Dholakia
almost 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

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

2822 points
593d545c83696644420003b7_64554016
Submitted by
stetim94
almost 2 years ago


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

3645 points
5334fc819c4e9db930001a0d_32139218
Submitted by
Leon
almost 2 years ago