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 Adjust the Profile Page and Header

My about page has issues. My image isn't floating to the left

here's my about.html

<!DOCTYPE html>
    <meta charset = "utf-8">
    <title>Paul Vitalis | Python programmer</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/reponsive.css">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <a href="index.html" id="logo">
        <h1>Paul Vitalis</h1>
        <h2>Python programmer</h2>
          <li><a href="index.html">Portfolio</a></li>
          <li><a href="about.html" class="selected">About</a></li>
          <li><a href="contact.html">Contact</a></li>
   <div id="wrapper">
    <section >
      <img src= "img/Bot.jpg" alt= "Paul Vitalis photograph" class="profile-photo">
      <p>Hi, I'm Paul Vitalis. I'm currently a student at the University of Nairobi in Kenya. When I'm not studying, I love listening to acoustic music, reading novels, having some good cake and spending time with family and friends.</p>
      <p>If you'd like to follow me on twitter, my username is <a href="http://twitter.com/Paulotieno200">@Paulotieno200.</a></p>
      <a href="http://twitter.com/Paulotieno200"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
      <a href="http://facebook.com/paul.vitalis.7"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
      <p>&copy; 2015 Paul Vitalis.</p>


and here is my responsive.css

@media screen and (min-width: 480px) {

  #primary {
    width: 50%;
    float: left;

  #secondary {
    width: 40%;
    float: right;

#gallery li {
  width: 28.3333%;

#gallery li:nth-child(4n) {
  clear: left;


.profile-photo {
  float: left;
  margin: 0 5% 80px 0;


@media screen and (min-width:660px) {

  nav {
    background: none;
    float: right;
    font-size: 1.125em;
    margin-right: 5%;
    text-align: right;
    width: 45%;

  #logo {
    float: left;
    margin-left: 5%;
    text-align: left;
    width: 45%;

  h1 {
    font-size: 2.5em;

  h2 {
    font-size: 0.825em;
    margin-bottom: 20px;

  header {
    border-bottom: 5px solid #599a68;
    margin-bottom: 60px;


Please help

19,845 Points

I do not know if I just cannot see it, but I do not see a element with the id of primary or secondary on your page.

hope that helps.

There is a bug, where Firefox can't center it, so to do that you need to add this above float: left; : clear: both;

2 Answers

Not sure if it's what's causing the issue, but your html has a typo in the CSS file name:

<link rel="stylesheet" href="css/reponsive.css">

Should be:

<link rel="stylesheet" href="css/responsive.css">

Assuming that the file itself has the correct file name...

Thank you so much!!1 It now works!!

No problem!

Not sure what browser you're using, but things like Chrome's Dev Tools can help to find these issues in future. In this case, it would report that it can't find a file with the filename css/reponsive.css.

Check out the Treehouse Workshop Debugging a Web App with Chrome Dev Tools for more info.

Other browsers have similar tools.