Ahh... I got where is your problem. You are including the css with @include, so it inserts the whole css file into your html code.
The result will look like this:
localhost:8080/GraphBuilder/yourpage.htm
<html>
...
<style>
.myId {
background:url(../images/bg_bar.gif) no-repeat 0 0;
}
</style>
...
Now, looking at the address of the page, where do you think will it try to find the image? Exactly, in localhost:8080/GraphBuilder/../images/bg_bar.gif
-> localhost:8080/images/bg_bar.gif
.
You have 2 options to solve it:
- Instead of @include, use simple
<style type="text/css" src="include/css/default.css"/>
. This will make it look for css in the path localhost:8080/GraphBuilder/include/css/default.css
. And css will look for image in localhost:8080/GraphBuilder/include/css/../images/bg_bar.gif
-> localhost:8080/GraphBuilder/include/css/images/bg_bar.gif
.
- Leave everything as it is, but change the path in css file to 'include/images/bg_bar.gif'. However this solution is worse than the first one, as including css in html file sucks.