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


Page-width not scaling correctly

I just migrated a WordPress site from my localhost to the Rackspace cloud hosting. This is my first time working with Rackspace. For some reason, the page-width on the new site is a little over 200px larger. So all of the layout is thrown off, since it was styled for a page that was scaling smaller. I'm looking for a way to either resolve this discrepancy, or at least fix the styling without having to re-size every rule that applied to width. I am also using Bootstrap in the project. I have tried various things to get the page to adapt to the new view, such as various settings for max-width, but nothing so far has had any affect. Thanks in advance for any suggestions. I really appreciate it.

Can you post your code? Have you tried the width to be 100%?

luke hammer
luke hammer
25,513 Points

yes please post code and pay attention to you media queries

Never mind. Figured out the issue. It was server related.

Media queries? What are those?

Sorry, Luke. That was a joke. I should've prefaced it.

1 Answer

luke hammer
luke hammer
25,513 Points

Media Queries are a way to format your html differently for different screen sizes. It will only apply some of your CSS depending on screen width.

check out http://teamtreehouse.com/library/write-css-media-queries for more details.