Last active
December 23, 2015 21:59
-
-
Save larswittenberg/6700236 to your computer and use it in GitHub Desktop.
Background Image Cover
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
** Perfect Full Page Background Image | |
** http://css-tricks.com/perfect-full-page-background-image/ | |
** | |
** UPDTAE: background-attachment: fixed; führt bei iOS zu Problemen | |
** http://codepen.io/larswittenberg/pen/zlEsL | |
*/ | |
.background-image { | |
position: fixed; | |
width: 100%; | |
height: 100%; | |
background: url(../images/background.jpg) center center no-repeat #33322E; | |
{* background-attachment: fixed; *} | |
z-index: 0; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/background.jpg', sizingMethod='scale'); | |
-ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/background.jpg', sizingMethod='scale')"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment