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


Proportions with different devices

Hi I am having trouble getting proportions of the navigation menu i made right with the rest on the content on my page. When I resize the window on my laptop to a mobile size, the navigation is much larger then the navigation window that appears when I open the workspace on my phone. If I try to resize the window on my laptop to match my phone, the content of my page will be much wider and smaller then that of the phone. Furthermore, when I test the workspace html file on websites such as http://www.studiopress.com/responsive/ the display for the mobile size is completely not what I get on my phone, On my phone I get what looks like a condenced version of my site as it looks when it is on full screen on my laptop. I hope this make sense

<!DOCTYPE html>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/normalize.css">
    <link href="http://fonts.googleapis.com/css?family=Changa+One|Open+Sans:400italic,700italic,400,700,800" rel="stylesheet" type="text/css">
    <link href='http://fonts.googleapis.com/css?family=Dosis:600' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="css/main.css">

    <meta name="viewport" content="width-device-width, initial-scale-1.0">


       <div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.0";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

      <a href="home.html" id="logo">
          <img src="img/mob-shpe-header.jpg" alt="">
      <nav class="navclass">
          <li><a href="home.html" class="selected">Home</a></li>
          <li><a href="about.html">Members</a></li>
          <li><a href="gallery.html" >Gallery</a></li>
          <li><a href="history.html">History</a></li>

    <div id="wrapper">

      <div class="navclass">
         <p class="hashtag">#GMUSHPE</p>
        <div class="home-image">
         <img src="img/img-1.jpg" alt="">
      <section class="welcome">

        <p>Welcomevery active in ensuring that students feel a sense of community and friendship while recieving valuable networking opporutnites that will help them advance in their area of study. All students interested in STEM are welcome to join!</p> 

body {
  font-family: 'Open Sans' , sans-serif;

#wrapper {
  max-width: 940px;
  margin: 0 auto; 
  padding: 0 5%;  

a {
  text-decoration: none;

 max-width: 100%; 

  margin: 0 0 1em 0;


  float: left;
  margin: 0 0 20px 0;
  padding: 5px 0 0 0;
  width: 100%;


 text-align: center;
  margin: 0;


#logo img {
  max-width: 60%;
    display: block;
    margin: auto;

h1 {
 font-family: 'Changa One', sans-serif;
  margin: 15px 0px;
  font-size: 1.75em;
  font-weight: normal;
  line-height: 0.8em;

 font-size: 0.75em;
  margin: -5px 0 0;
  font-weight: normal;


nav {
  text-align: center;
  padding: 10px 0;
  margin: 20px 0 0;


nav ul {
 list-style: none;
  margin: 0px 10px;
  padding: 0;

nav li{
  display: inline-block;
  background-color: #000033;
  margin: 3px 0px;
  padding: 5px 0px;
  border-radius: 5px;

nav a {
 font-weight: 800;
  font-size: 2.5em;
  padding: 0px 10%;

nav li:nth-child(even) {
  width: 49%;
  float: right; 

nav li:nth-child(odd) {
  width: 49%;
  float: left;

.navclass:after {
    content: " "; /* 1 */
    display: table; /* 2 */
.navclass:after {
    clear: both;
.navclass {
    *zoom: 1;


.home-image img{
  display: block;
    margin: auto;

  box-shadow: 0px 0px 4px 2px #999;


  margin-top: 20px;
  margin-bottom: 20px;
  padding: 3px 15px 15px;
 border-radius: 5px;


1 Answer

Geoffrey Powell
Geoffrey Powell
15,358 Points

Check your viewport tag. You have initial-scale-1.0. Should be initial-scale=1 . Also width-device-width should be width=device-width. That should fix the condensing problem on your phone you're talking about.