Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Max E Pierce
4,990 PointsFull size background images displaying differently on Safari
Hello!
The site I'm working on has a home page with a full size background image on its home page. I'm using this code snippet (from a css tricks article by chris coyier) in my css to achieve it.
html { background: url(images/bg.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
Generally, this works really well! But in safari the image is zoomed in by about 15% so the original cropping of the image is distorted. Any ideas for ways to fix it?
Thanks! Max.
1 Answer
Jovanny Elias
16,204 PointsI found this on stackoverflow It may help you out to provide a fallback for safari. let me know if it works out for you. If not I can try looking elsewhere for a solution.