logician Posted November 16, 2011 Report Posted November 16, 2011 I made a css stylesheet. I gave it the name root.css. So far these are the rules I have in it: p { width: 80%; color: red; } I then put it in the websiteProject folder on the same level as the index.html page. This is the tag I have on the index.html page to apply the style: <link href="ROOT.CSS" rel="stylesheet" type="text/css">. For some reason the style is not applying. Thanks for any suggestions.
Andrea Posted November 16, 2011 Report Posted November 16, 2011 File names are case sensitive - you say your file is called root.css but your link points to ROOT.CSS - not the same thing; your cases have to match.
logician Posted November 16, 2011 Author Report Posted November 16, 2011 To be honest about it, I tried matching the file names to make them case sensitive before posting the question. Everything I thought of does not work. I retried it sense your response. Still no success.
falkencreative Posted November 16, 2011 Report Posted November 16, 2011 By default, Windows and Mac both hide the file extension on known file types, so it's quite possible that your file is named "root.css.txt" and you just don't realize it. Take a look at this topic on how to fix this: http://www.killersites.com/community/index.php?/topic/3010-cant-open-my-website/page__gopid__16509entry16509
logician Posted November 17, 2011 Author Report Posted November 17, 2011 Thank you for the advice on the .txt extention. I tried it and it was successful.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now