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

main.css and font links no longer working

I was working on the How to Build a Webpage project yesterday, everything was saved and looking good. I got up today and opened up my workspace, didn't change anything, and now my main.css file isn't linking. normalize.css appears to be linked, but my font and main.css links are no longer linking.

I have index.html on its own, not in a folder. main.css and normalize.css are both in a folder named css. I don't know what happened! Any help would be much appreciated.

This is how my code appears in index.html:

  <head>
    <meta charset="utf-8">
    <title>Amanda Wagner | Craft Aficionado</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">
  </head>

so the main.css file is still there, just the index.html file isn't seeing it any more?
-Try restarting your browser

  • post a link to the workspace so maybe someone here can jump on and look

Yes, the main.css file is there, I've tried exiting and relaunching my workspace but it still isn't working.

Sorry the coding didn't post before, I'll try posting it again, I removed the opening head tag.

<meta charset="utf-8">
<title>Amanda Wagner | Craft Aficionado</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">

</head>

And here's a link to my workspace:

http://teamtreehouse.com/workspaces/574002#

3 Answers

Nevermind everyone, I got it. There was one tiny error, of course, holding everything back. Thanks!

Make sure you define that main.css is in css folder, Try (<)link href="css/main.css rel="stylesheet"(>) For some reason code doesn't show up in the answers, I put the brackets in parentheses, just ignore the parentheses

Yes, the main.css file is there, I've tried exiting and relaunching my workspace but it still isn't working.

And here's a link to my workspace:

http://teamtreehouse.com/workspaces/574002#