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
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
> 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
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'
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
5 matches
Mail list logo