On Sat, Mar 28, 2009 at 7:17 AM, Ayaz Ahmed Khan wrote:
> Furthermore, it stipulates that if the given URL path is
> relative, the absolute path is derived at by combining that relative
> path with a base URL which, for CSS style sheets, is the base URL for
> the style sheet. However, your guess
On 28-Mar-09, at 3:14 AM, Dougal Matthews wrote:
>
> 2009/3/27 Brian Neal :
>>
>> I seem to recall that when you put references to files in your
>> CSS, they are relative to that CSS file, not to the document
>> root. So if that graphic file is in the same directory as your
>> CSS file, change yo
Isn't it just because you don't have quotes around the image address?
background: url('/site_media/header_background.gif') no-repeat top left;
Dougal
---
Dougal Matthews - @d0ugal
http://www.dougalmatthews.com/
2009/3/27 Brian Neal :
>
> On Mar 27, 7:33 am, Gath wrote:
>> Guys,
>>
>> Am ha
On Mar 27, 7:33 am, Gath wrote:
> Guys,
>
> Am having a problem in displaying images in my CSS file.
>
> I have a css file with the following class
>
> .header
> {
> margin-left: auto;
> bla bla
> bla bla
> ...
> background: url(/site_media/header_background.gif) no-repeat top left;
>
> }
>
>
In most of my projects I have a img, css, js folder. In my css file I
reference images like this url(../img/path/to/img.jpg) in my css
files. The ../ basically says start the path back one directory. Not
sure if this is what's causing your problem.
On Mar 27, 8:10 am, Martin Ostrovsky
wrote:
> I
I spoke too soon. Re-reading your comment, it does seem to be entirely
a CSS/HTML issue - not Django related. Since the inlined style works,
Django is finding the image.
Sorry about that misleading response.
On Mar 27, 9:07 am, Martin Ostrovsky
wrote:
> Without seeing your settings.py file and
Without seeing your settings.py file and urls.py, I can only guess,
but you probably don't have serving static media setup correctly. If
you're running this on the development server, you'll probably see a
404 next to /site_media/header_background.gif in the terminal window.
This means Django can'
Guys,
Am having a problem in displaying images in my CSS file.
I have a css file with the following class
.header
{
margin-left: auto;
bla bla
bla bla
...
background: url(/site_media/header_background.gif) no-repeat top left;
}
When i execute the template with this css, no image is display
8 matches
Mail list logo