Re: specifying MEDIA_URL in CSS files

2008-09-19 Thread Erik Allik
I still can't understand why you can use relative URLs to images in your CSS files. If you keep your CSS files together with your image files, nothing will break if you move them to another URL. Sorry if I'm missing something obvious. Erik On 18.09.2008, at 20:56, MrJogo wrote: > > Erik: I

Re: specifying MEDIA_URL in CSS files

2008-09-18 Thread MrJogo
Erik: I can't use relative URLs because of how my hosting service (my university) is set up. Each account is at something like www.university.edu/~studentname/. I could hard code it if I were leaving it on my space, but I'm making it for a group (which has space at www.university.edu/group/groupna

Re: specifying MEDIA_URL in CSS files

2008-09-13 Thread Tim Chase
> What's the best way to use MEDIA_URL in a CSS file. For example, right > now my CSS file has something like: > > body { > background: transparent url('/media/images/bg.gif') repeat; > } > > I would like to use MEDIA_URL instead of /media/ (in a number of > places), but other than that the fi

Re: specifying MEDIA_URL in CSS files

2008-09-13 Thread Erik Allik
You should instead simply use relative URLs to images in CSS files. Style sheets and images are (normally) always at the same location relative to each other so nothing will break if you change their location. Of course if your images are in a different domain than your style sheets, that'

specifying MEDIA_URL in CSS files

2008-09-13 Thread MrJogo
What's the best way to use MEDIA_URL in a CSS file. For example, right now my CSS file has something like: body { background: transparent url('/media/images/bg.gif') repeat; } I would like to use MEDIA_URL instead of /media/ (in a number of places), but other than that the file is static. What