Browse Source

Fix hero background image for mobile safari

master
Brett Langdon 8 years ago
parent
commit
939587eb36
No known key found for this signature in database GPG Key ID: A2ECAB73CE12147F
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      index.html

+ 2
- 2
index.html View File

@ -8,8 +8,8 @@
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
<style>
html, body, * { font-family: 'Lato', sans-serif; }
.hero-body { background-image: url('background.jpg'); background-repeat: no-repeat; background-size: cover; background-attachment: fixed; background-position: 0% 50% }
@media screen and (max-width: 900px) { .hero-body { background-position: 50% 50%; } }
.hero-body { background-image: url('background.jpg'); background-repeat: no-repeat; background-size: cover; background-attachment: scroll; background-position: 0% 80% }
@media screen and (max-width: 1100px) { .hero-body { background-position: 50% 50%; } }
@media screen and (max-width: 600px) { .hero-body { background-position: 65% 50%; } }
</style>
</head>


Loading…
Cancel
Save