Jump to content

Can not apply css stylesheet


logician

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...