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 CSS Foundations The Box Model Floats

Paul Barron
Paul Barron
6,595 Points

Divs next to each other.

I'm working on a site 132media.com It's "responsive" but I don't want it to be in this case. The nav bar's text gets pushed into a stack of block elements. I don't want it to be pushed over I want it to sit still even when the browser is shrunken like the sprintpcs.com nav bar or any other that does the same. I hope you can help. Thanks.

2 Answers

sprints website isn't responsive, they have two versions a mobile and a web.

Paul Barron
Paul Barron
6,595 Points

I get that. I'm wondering why my nav text stacks on top of each other, rather than stay next to each other in line when I shrink my browser.

Thomas Ireland
Thomas Ireland
Courses Plus Student 8,216 Points

Paul, it looks like sprintpcs.com have a fixed width on the navigation bar div. Personally speaking, I would have it so it resizes with the browser and make it responsive, but each to their own. Try adding a fixed width to your navigation div and see how you get on.

With any responsive design you should build mobile first. A lot less code =faster load times

Paul Barron
Paul Barron
6,595 Points

Yes I agree. But I plan on doing a different mobile site entirely. I want it to have a different design altogether. I will try the nav fixed width.

Paul Barron
Paul Barron
6,595 Points

Yes I agree. But I plan on doing a different mobile site entirely. I want it to have a different design altogether. I will try the nav fixed width.