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.

[css]

body {

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

background-size:100% 100%;

background-attachment:fixed;

}

[/css]

Views (79)

The following two tabs change content below.

Leave a Reply

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

fifteen − 5 =