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 trialMichael Edwards
4,955 PointsWhen I bring up the final version in Chrome, the whole page layout shifts to the left. It shifts back right afterwards.
Any ideas why the introduction of the modal would be shifting the whole page layout? This happens even in an unaltered "final" version of the project.
4 Answers
Michael Edwards
4,955 PointsAurelian Spodarec, it happens when I use an unaltered copy of the "Final" html provided in the project files for that lesson.
Aurelian Spodarec
7,369 PointsUm , i don't know but does it happen only in Chrome?
Michael Edwards
4,955 PointsIt also happens in Firefox. I made a screencast of the issue happening: https://www.youtube.com/watch?v=qfK9CFcIBt8&feature=youtu.be
My hunch is that it might be Mac OS X, which likes to hide scroll bars by default. I'm wondering if the modal window is activating the scroll bar, thus taking up window space and shifting the viewport size.
I'll do some testing and report back.
spencermccullough
7,897 PointsI'm having the same issue. If anyone knows why that is I would love to know.
Quicken Loans
12,654 PointsI am having this same issue - It even happens on the code from the project files
I added
.modal {
overflow: auto;
}
That keeps the body steady, but the fixed nav bar still shifts
Laurel O'Brien
1,223 PointsI don't know why, but it does this on my mac and not my boyfriend's PC, regardless of browser. My carousel also changes height for a second between slides.
Aurelian Spodarec
7,369 PointsAurelian Spodarec
7,369 PointsCould you show us your code? maybe we can spot something. Or whatever is happening, if its the code.