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

HTML

Alvaro Antinao
Alvaro Antinao
5,914 Points

Navigation menu adaptable to mobile devices

how to make a navigation menu adaptable to mobile devices

Useful?? necessary??

1 Answer

Steven Parker
Steven Parker
231,264 Points

Because of the smaller screen size on mobile devices plus the fact that selection is often done with a finger instead of a more precise pointer, it's often desirable to present the menu with a different layout, larger font, or a combination of these compared to how it might be on a desktop screen.

A common approach to doing this is by using "media queries", which allow different CSS settings to be applied based on the client window dimensions.