CSS – How to fix the background image with full width and full height

If you would like to fix a background image with css, use the code below.


body {

background-image:url(image-url.jpg);

background-size:100% 100%;

background-attachment:fixed;

}

Views (24)

Share on Facebook0Share on Google+0Share on LinkedIn0Tweet about this on TwitterEmail this to someonePrint this page
[Total: 2    Average: 5/5]
The following two tabs change content below.

Leave a Reply

Your email address will not be published. Required fields are marked *

five + 5 =