Haroon Rafique wrote: > > On Today at 9:38am, AL=>Andy Law <andy....@roslin.ed.ac.uk> wrote: > > If your file structure is somewhat like: > > styles/base.css > images/image.gif > > then you can simply change your background-image directive to say: > background-image: url('../images/image.gif'); > > or in other words, your image path will be relative to the path from where > the .css file is located. So, no need to worry about context paths and/or > nesting levels of action URLs. >
Is this the case? I always thought that *all* URLs were relative to the URL of the web page/action. If I can use a known relationship between the CSS file and the images then it should be trivial to fix, like you say. I'll try it in the morning. Later, Andy -- View this message in context: http://www.nabble.com/CSS-background-images%2C-struts2-tp24811929p24816098.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org