Adding a full page background image to any web page.

Full page background....

Here’s a simple piece of CSS code that will help you add a background image to any web page and make it take up the full page width & height. Simply add the code below to the top of your “.css” file and then change the path to the image.

alt text

html { 
background: url(siteimages/whatever.jpg) no-repeat center center fixed; 
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}

Related posts