Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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

Brandan Booth
Brandan Booth
8,846 Points

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.

Brandan Booth
Brandan Booth
8,846 Points

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.