If you want to troubleshoot your code before you post in the forum, here are the most common errors in these two exercises.
HTML problems
- Do not include a link to font.css, that was just an example, there is not a file by that name available to you in these exercises
- Do include a link to main.css. Without that, none of your CSS code is being loaded. You should be able to see evidence of this in your web preview window, for example, your nav links will not be uppercase and they will be blue instead of black.
- Do include a link to shift.css, this is a link to the font that we will be using.
- Make sure your link to shift.css works. This is very easy to check - try to go to it with your browser and see if you get an error. If you see an error when you do that, then you do not have the correct link. The link given in the exercise is correct but often people misread it, mistype it, or don't see all of it because it is off the screen, in which case you can drag over it with your mouse to see it all.
CSS problems
- Are each of your
property: value;
lines formatted just like that - with a colon after the property and a semicolon after the last value? See the image below for examples. - Do you have
{ }
around each of your sets of property/values like in the image below? Leaving out or misplacing just one of those will affect everything after it.
If you have messy code it is going to be harder to spot one of the above mistakes, both for you and for anyone else reading your work
Other
- The browser might be in an unstable state: reload/refresh the web page.
- The exercise might be in an unstable state: use the Reset Code button and start the exercise again.
- If you have another web browser, check to see if the problem exists there too.
Still Getting an Error?
Start a new topic in this forum (if you haven't already), and post these two things in it:
- All of your CSS code -- that means everything in your main.css file
- The
<head> ... </head>
from your index.html file
Here is a link describing how to post code in this forum