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 Customizing Colors and Fonts Pick Fonts and Set Relative Units

FONT IS NOT WORKING!!! NEED HELP!!!!!

I set the font shadows into light, and my font is not working!!!!

Here is the HTML:

<link rel="stylesheet" href="normalize.css">
    <link href='http://fonts.googleapis.com/css?family=Shadows+Into+Light|Gloria+Hallelujah|Architects+Daughter|Annie+Use+Your+Telescope|Coming+Soon|Amatic+SC:700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="main.css">

Here is the CSS:

/**************************************
HEADING
***************************************/
#logo {
  text-align: center;
  margin:0;
}

h1 {
font-family: 'Shadows Into Light', cursive;
}

1 Answer

Colin Bell
Colin Bell
29,679 Points

It should be working. Take a look at this JSBin. I just copied and pasted your code and added a test h1.

Let me know if have anything setup differently or still can't get it to work.

Thank you so much!!!

Sorry to bother you.... my font is not working. I tried copy and pasting the same thing you put in JSBin. It did not work when I previewed. Could it be a problem in the rest of my code?

Colin Bell
Colin Bell
29,679 Points

Possibly. Is there any way you can post your entire code [HTML & CSS]? Either here or in a codepen/jsbin.

Alright. Here is my main.css and index.html:

HTML:

<!DOCTYPE> <html> <head> <meta charset="utssf-8"> <title>Crafts for Kids | .org</title> <link rel="stylesheet" href="normalize.css"> <link href='http://fonts.googleapis.com/css?family=Shadows+Into+Light|Gloria+Hallelujah|Architects+Daughter|Annie+Use+Your+Telescope|Coming+Soon|Amatic+SC:700' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="main.css"> </head> <body> <header> <a href="index.html" id="logo"> <h1>Crafts for Kids</h1> <h2>.org</h2>

    </a>
    <nav>
      <ul>
        <li><a href="http://port-80-v7b1grzkyz.treehouse-app.com/"class:"selected">Home</a></li>
        <li><a href="http://port-80-v7b1grzkyz.treehouse-app.com/familycrafts.html">Family Crafts</a></li>
        <li><a href="http://port-80-v7b1grzkyz.treehouse-app.com/partycrafts.html">Party Crafts</a></li>
         <li><a href="http://port-80-v7b1grzkyz.treehouse-app.com/newcraft.html">New Craft</a></li>

      </ul>
    </nav>
  </header>
  <div id="wrapper">
  <section>
    <p>Welcome to crafts for kids! There are many crafts here. If you have a craft that is not currently on this website, please click "new craft" and fill in the information about your craft.</p>
    <ul>
    <li>
      <h1>Crafts of the Month</h1>

       <img 

    src="http://kiboomukidssongs.com/wp-content/uploads/2012/12/Easy-Winter-Eskimo-Craft-and-Winter-Song-1.jpg" alt="Sorry for your inconveince but this image is unavalible.">
       <br>

<a href="http://port-80-v7b1grzkyz.treehouse-app.com/familycrafts.html">Cottonball Eskimo Craft</a>

      </li>
      <li>
      <img src="https://s-media-cache-ak0.pinimg.com/236x/6d/f3/8b/6df38bbc854d85e3d488449b5e51cbe6.jpg" alt="Sorry for your inconveince but this image is unavalible.">
      <br>

<a href="www.http://port-80-v7b1grzkyz.treehouse-app.com/familycrafts.html">Marshmellow Igaloos</a> </li> <li> <img src="https://s-media-cache-ak0.pinimg.com/236x/fa/46/ef/fa46eff772e19ae3ffd66fec4b973353.jpg" alt="Sorry for your inconveince but this image is unavalible."> <br> <a href="http://port-80-v7b1grzkyz.treehouse-app.com/familycrafts.html">Mitten Craft</a> </li> <li> <img src="http://learningathome.ca/wp-content/gallery/misc-site-pics/paper-plate-snowman.jpg?2052160481" alt="Sorry for your inconveince but this image is unavalible."> <br> <a href="http://port-80-v7b1grzkyz.treehouse-app.com/familycrafts.html">Paper Plate Snowman</a> </li> <li><img src="http://www.marinmommies.com/files/images/snowman.jpg" alt="Sorry for your inconveince but this image is unavalible."> <br> <a href="http://port-80-v7b1grzkyz.treehouse-app.com/familycrafts.html">Popsicle Stick Snowman</a> </li> <li> <img src="http://coloringpagesjos.com/wp-content/uploads/2014/204132-paper-snowflake-patterns.jpg" alt="Sorry for your inconveince but this image is unavalible."> <br> <a href="www.papersnowflake.html">Paper Snowflake</a> </li> </ul>

  </section>
  <footer>
    <p>&copy; 2014 Arnav Kaushik.</p>
  </footer>

</div> </body> </html>

"CSS:

/*************************************** GENERAL ****************************************/

wrapper {

max-width: 940 px; margin: 0 auto; } a { text-decoration: none; } /************************************** HEADING ***************************************/

logo {

text-align: center; margin:0; }

h1 { font-family: 'Shadows Into Light', cursive; }

/************************************* COLORS *************************************/ / site body */ body { background-color: turquoise;

} /pink header/ a { color: #fc099e;

}

nav a, nav a: visited { color: #fff } nav a.selected, nav a:hover { color:#994388; }

Excuse the pictures.... they showed up anyway! :)