How to use Web Contexts?


I'm trying to use Web Contexts to solve unresolve refences to files.
I haven't been very successful so far.

A simple example:
I have 2 directory
located in a same base directory.

in styles/style.css I want to reference an image with url(../images/pic.gif).
This works in practice but I can't get IDEA to find the pic.gif, no matter what I set as Web Context.
I tried to set the main folder containing styles and images as / but to no avail.

thanks for any help

1 comment
Comment actions Permalink

It works for me... Are the files located under the same web root, like

-- root
  -- styles
  -- images



Please sign in to leave a comment.