.css file and relative paths

I’m working on a wrapper for a 3rd party control and I’m having problems with the images displaying.

What is the best method for dealing with relative paths in a .css file?

background: url(images/header.gif); 

Nothing I’ve tried works other than opening the css file in a webfile and doing a replaceall.

Does anyone have a better method they would share?

WebFiles are the way to go. Use instance properties for files that change from session to session and Shared Properties for files that are global.

Thanks Greg… I’ll just keep doing it the way I have been then. It works.

If it’s only for yourself, you could use App.HandleUrl to intercept the requests.

If these controls perform well for me with Xojo, I’ll be offering them to others. Thanks for the suggestion though Greg.