If none of your styles is working,
- Are you actually viewing your page from the server? Check the tips here.
- Check that you uploaded your css file and refreshed your browser.
- Check the link tag in your html file.
- The link tag should look like:
<link href="css_file" type="text/css" rel="stylesheet" />
(carefully check the = and " characters)
(Did you paste any part of your link tag from another application? If so, your
quotes could be the problem.)
- The link tag should be in the head of your webpage
- Check the relative url to the css file.
- Check the path name to your css file. Is it correct?
See the Relative URL Practice Quiz on
Canvas.
- Carefully check the folder names and file name in the relative url to your css file and make sure
they match the actual folder and file names.
Look carefully; two names can appear to be the same when, in fact, they are not.
For example, check out these file names
- Check the layout of your styles, the layout of the
html
to which you are applying the styles and the spelling of the
styles and values.
- Are you actually viewing the correct file?