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

CSS

Fixed images for Mobile scrolling (Issue)

Okay, so I have ran into a interesting yet annoying problem. I have looked up google tutorials but a majority of the things on there are basically asking me to reconstruct my website a bit. I'd rather avoid this if possible.

On desktop, the website works as it should, but my android and (I assume iOS) are giving me problems. the main background image is gone (which is fixed) and the header / hero image is also fixed, however on mobile it's scrolling.

I know the main problem is the fact I am using background-size: cover; for all my background images. I have future plans for the website in the future but I'd like to know how to fix this without having to create extra divs and reconstructing if possible.

I can provide a link to the website if it'll help or post the code, but I am sure the issue should be some what clear.

Julian Gutierrez
Julian Gutierrez
19,325 Points

If you could provide the link to the website that would help.

the website is www.badrabbitdesigns.com

1 Answer

Steven Parker
Steven Parker
243,656 Points

:point_right: Add this to the smaller CSS media query rule for .row-white:

    overflow: hidden;

Not seeing a difference