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

HTML How to Make a Website Styling Web Pages and Navigation Style the Portfolio

CSS file not loading

I'll start by sending my code:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Robbin Kalaamalho | Designer</title>
    <link rel="stylesheet" href="CSS/normalize.css">
    <link href="https://fonts.googleapis.com/css?family=Changa+One:400,400i|Open+Sans:400,400i,700,700i,800" rel="stylesheet">
    <link rel="stylesheet" href="CSS/main.css">
  </head>
  <body>
    <header>
      <a href="index.html" id="logo">
        <h1>Robbin Kalaamalho</h1>
        <h2>Designer</h2>
        </a>
        <nav>
          <ul>
            <li><a href="index.html" class="Selected">Portfolio</a></li>
            <li><a href="about.html">About</a></li>
            <li><a href="contact.html">Contact</a></li>
          </ul>
      </nav>
    </header>
    <div id="wrapper">
      <section>
        <ul>
          <li>
            <a href="Img/numbers-01.jpg">
              <img src="Img/numbers-01.jpg" alt="">
              <p>Playing with blending modes on Photoshop</p>
              </a>
          </li>
          <li>
            <a href="Img/numbers-02.jpg">
              <img src="Img/numbers-02.jpg" alt="">
              <p>Trying to create an 80s style of glow</p>
              </a>
          </li>
          <li>
            <a href="Img/numbers-06.jpg">
              <img src="Img/numbers-06.jpg" alt="">
              <p>Tips created using Photoshop brushes</p>
              </a>
          </li>
          <li>
            <a href="Img/numbers-09.jpg">
              <img src="Img/numbers-09.jpg" alt="">
              <p>Experimentation with color and texture.</p>
              </a>
          </li>
          <li>
            <a href="Img/numbers-12.jpg">
              <img src="Img/numbers-12.jpg" alt="">
              <p>Creating shapes using repition</p>
              </a>
          </li>        
        </ul>
      </section>
      <footer>
        <a href="https://www.twitter.com/"><img src="Img/twitter-wrap.png" alt="Twitter logo"></a>
        <a href="https://www.facebook.com/"><img src="Img/facebook-wrap.png" alt="facebook logo"></a>
        <p>&copy; 2017 Robbin Kalaamalho.</p>
      </footer>
    </div>
  </body>
</html>
/********************
GENERAL
********************/
body {
  font-family: 'Open Sans', sans-serif;
}
a {
  text-decoration: none;
}
#wrapper {
  max-width: 940px;
  margin: 0 auto;
  padding: 0 5%;
}
/********************
HEADING
********************/
#logo {
  text-align: center;
  margin: 0;  
}
h1 {
  font-family: 'Changa One' , 'Sans-Serif';
  margin: 15px, 0;
  font-size: 1.75em;
  font-weight: normal;
  line-height: 0.8em;
}
h2 {
  font-size: 0.76em;
  margin: -5px, 0 0;
  font-weight: normal;
}
/********************
NAVIGATION
********************/
nav {
  text-align: center;
  padding: 10px 0;
  margin: 20px 0 0;
}

/********************
FOOTER
********************/
Footer {
  font-size: 0.74em;
  text-align: center;
  padding-top: 50px;
  color: #ccc
/********************
COLOURS
********************/
body {
  background-color: #fff;
  color: #999;
}
header{
  background: #6ab47b;
  border-color: #599a68
}
h1, h2 {
  color: #f1ffff
}
a {
  color: #6ab47b
}
nav {
  background: #599a68
}
nav a, nav a:visited {
  color: #fff;
}

nav a.selected, nav a:hover {
  color: #32673f;
}
footer a:hover {
  color: #fff
}

What it is supposed to look like: http://imgur.com/xzIBa2v

What it looks like: http://imgur.com/KgI6OvS

It was all fine until I got to the part where I add notes to the CSS file and it all just went to trash. Can't figure out what I did wrong?

1 Answer

I figured it out! Thanks anyways :D