Search code examples
eclipseiderad

Turn off CSS image path correction in Eclipse


I have RAD 7.5 and when modifying CSS files, RAD "auto-corrects" image paths "on save". I haven't found a way to turn that off but I don't want to keep this behavior.

The issue here is that let's say I have css like this:

.someClass {
   background: (images/someImage.gif);
}

When I save the file while in CSS design mode in RAD, the file will try to automatically change the image path to something like:

.someClass {
   background: (root/WEBAPPLICATION/images/someImage.gif);
}

Solution

  • In RAD, Goto Windows > Preferences > webtools > links.

    1. In the right side > under defualt link path you have 2 options
    2. Relative to document Directory
    3. Relative to document Root directory.

    I guess you need to select option 1.