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

JavaScript

Sharina Jones
PLUS
Sharina Jones
Courses Plus Student 18,771 Points

jQuery impacting layout

Hiya,

I'm working on my personal portfolio. My layout looked find until I added the drop down functionality to my menu. Now my site is wider than the viewport. I have no idea how to fix it. I've tried setting a max width to the body to no avail.

Plz halp.

ETA: I fixed it. I forgot to set a max-width for my images. After I did that, the layout stays within the viewport as the menu opens and closes.

1 Answer

Sharina Jones
PLUS
Sharina Jones
Courses Plus Student 18,771 Points

I forgot to set a max-width for my images. After I did that, the layout stays within the viewport as the menu opens and closes.