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 Framework Basics Prototyping with Bootstrap Adding a Dropdown Menu and Glyphicons

Paul Roberts
Paul Roberts
7,928 Points

Guil's Dropdown Menu

Looking at Guil's example... It looks great and is responsive, however on the minimum screen setting a horizontal scrollbar is introduced because "Learning Adventures" is too long a phrase. Is there a solution - because it's only JUST too long? Or can you only have your dropdown menu a certain width?

I'm not sure what you want to achieve. I'm right you just want not that a horizontal scrollbar is displayed? Well you could just set the overflow-x to hidden but that won't be so nice since text is not displayed then. Additional you could use the word-break property to break the word on the end of the line or perhaps it was word-wrap, I'm not sure. But you could test it out

Colin Marshall
Colin Marshall
32,861 Points

How many px wide is the screen when you the scrollbar is introduced?

Paul Roberts
Paul Roberts
7,928 Points

It's introduced at 341px screen width. Thanks for the replies... I'll try some of the helpful suggestions!

1 Answer

Try using a smaller font-size in the text for the drop down menu.

Or, you could create a "max-width: 100%;" attribute in that selection.