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 How to Make a Website Responsive Web Design and Testing Adding Breakpoints for Devices

Theodore Griffin
Theodore Griffin
2,584 Points

My contact page isn't dividing into two sections. I am rather lost at this point.

I'm also not sure if my portfolio page is displaying correctly. Here is a link to my workspace:

https://w.trhou.se/8rjphy9gs3

4 Answers

Alexander Smith
Alexander Smith
2,769 Points

You're forgetting the semicolons(";") after you widths in your responsive.css.

Abe Layee
Abe Layee
8,378 Points

From the look of your code, I don't see you floating the primary and secondary element to left or right. check out the codepen I created. you can add padding and margin to it. http://codepen.io/Layee/pen/WvMjLr

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Theodore Griffin | Designer</title>
    <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 rel="stylesheet" href="css/main.css">
    <link rel="stylesheet" href="css/responsive.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Theodore Griffin</h1>
        <h2>Designer</h2>
      </a>
      <nav>
        <ul>
          <li><a href="index.html">Portfolio</a></li>
          <li><a href="about.html">About</a></li>
          <li><a href="contact.html" class="selected">Contact</a></li>
        </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section id="primary">
        <h3>General Information</h3>
        <p>I am currently seeking an entry level position as front-end web developer. If you have any questions please don't hesitate to contact me!</p>
        <p>Please only use phone contact for urgent inquiries. Otherwise, Twitter and email are the best way to reach me.</p>
      </section>
      <section id="secondary">
        <h3>Contact Details</h3>
        <ul class="contact-info">
          <li class="phone"><a href="tel:717-903-1021">717-903-1021</a></li>
          <li class="mail"><a href="mailto:TheodoreGriffin3@gmail.com">TheodoreGriffin3@gmail.com</a></li>
          <li class="twitter"><a href="http://www.twitter.com/intent/tweet?screen_name=DDT1986">@DDT1986</a></li>
        </ul>
      </section>
      <footer>
        <a href="https://www.twitter.com/headachewpics"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
        <a href="https://www.facebook.com/ted.griffin3"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
        <p>&copy; 2015 Theodore Griffin.</p>
      </footer>
    </div>
  </body>
</html>

try this css

#primary { float:left;
                 width:33.333%;}

#secondary {
float:right;
 width:60%;
}
Theodore Griffin
Theodore Griffin
2,584 Points

The semi-colons fixed my contact page. Is my portfolio page functioning properly? Also what is a codepen?

Abe Layee
Abe Layee
8,378 Points

codepen is an editor where you share your code with other.