/ Published in: CSS
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
html { background: url(images/background01.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; /* IE compatability */ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='.myBackground.jpg', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='myBackground.jpg', sizingMethod='scale')"; }
URL: http://css-tricks.com/3458-perfect-full-page-background-image/