Jump to content

Recommended Posts

Posted

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.

Posted

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.

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...