logician Posted November 16, 2011 Report Share 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. Quote Link to comment Share on other sites More sharing options...
Andrea Posted November 16, 2011 Report Share 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. Quote Link to comment Share on other sites More sharing options...
logician Posted November 16, 2011 Author Report Share 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. Quote Link to comment Share on other sites More sharing options...
falkencreative Posted November 16, 2011 Report Share 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 Quote Link to comment Share on other sites More sharing options...
logician Posted November 17, 2011 Author Report Share Posted November 17, 2011 Thank you for the advice on the .txt extention. I tried it and it was successful. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.