Skip to content

Instantly share code, notes, and snippets.

@akella
Created February 27, 2013 21:24
Show Gist options
  • Save akella/5051873 to your computer and use it in GitHub Desktop.
Save akella/5051873 to your computer and use it in GitHub Desktop.
ios bg problem
.container {
position: relative;
margin:77px 0;
height:2209px;
background: url(../images/bg.jpg) no-repeat 50% 0;
-webkit-background-size: 3000px 2209px;
font-family: 'Conv_Underdog', Tahoma, sans-serif;
font-size:14px;
color: #3d2415;
}
@media only screen and (max-device-width: 480px){
.container{
background:
url(../images/bgs/1.jpg) no-repeat 50% 0,
url(../images/bgs/2.jpg) no-repeat 50% 300px,
url(../images/bgs/3.jpg) no-repeat 50% 600px,
url(../images/bgs/4.jpg) no-repeat 50% 900px,
url(../images/bgs/5.jpg) no-repeat 50% 1200px,
url(../images/bgs/6.jpg) no-repeat 50% 1500px,
url(../images/bgs/7.jpg) no-repeat 50% 1800px,
url(../images/bgs/8.jpg) no-repeat 50% 2100px;
-webkit-background-size: 3000px 300px,3000px 300px,3000px 300px,3000px 300px,3000px 300px,3000px 300px,3000px 300px,3000px 109px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment