I may be making this harder than it needs to be but I can't get it to work. My project folder structure is: -config
-css
- styles.css
-images
- background.png
-nbproject
-public_html
- index.html
-test
In my CSS, I am trying to reference the background.png file. I thought that going up one level was denoted by ../ so I have:
background-image:url(../images/background.png);
Then, in the index.html file, I am trying to import the CSS file using:
<link rel="stylesheet" type="text/css" href="../css/styles.css">
The background is not showing up, so I'm guessing I am specifying the paths incorrectly. Is ../ not the way to say 'go up one level'?
I am trying to apply a background image using this class:
.body {
background-image:url(./images/background.png);
}
Then, apply the CSS as follows:
<body class="body">