You want to try to think of this from the browser's perspective. The browser loads the stylesheet from /styles/, so anything included from that stylesheet (by the browser) will be relative to /styles/. "../images/orange2.gif" is correct.
If it works in windows and not linux, I would guess that you have a case-sensitivity problem. The linux filesystem is case-sensitive, the windows filesystem isn't. Jeff > -----Original Message----- > From: Ed Thompson [mailto:[EMAIL PROTECTED] > Sent: Monday, October 06, 2003 1:38 PM > To: [EMAIL PROTECTED] > Subject: Re: [Mav-user] relative paths under Maverick... > > Tried this and discovered the path problem was not with the JSP, but > with the style sheet referncing a backgroups image: > > > > I have tried background-image : url("../images/orange2.gif"); > which works in windows but now linux. > background-image : url("images/orange2.gif"); > works in neither > > Within an MVC, what is the correct reference to an image from the style > sheet, giventhe following directory layout: > > root/ > |---jsp/ > |---images/ > |---styles/ > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > [INVALID FOOTER] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf [INVALID FOOTER]
