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

Why does my page breaks when I resize to a smaller screen?

Every time I shrink my screen on my desktop, there is this cut off on my layout on the right side of the screen. I haven't used media queries yet, but this still doesn't look normal, is there something I am overlooking? https://codepen.io/classycal/pen/povWxJy

1 Answer

Steven Parker
Steven Parker
231,008 Points

The 28rem padding applied to the left and right sides in the ".main-content" CSS rule mean that when the window width is below about 898 pixels, that element will stop being responsive to the size and allow the right side to be cut off by the window.

That was definitely the issue, thank you so much!