|
Posted by NC on 04/12/06 17:36
Littlefire wrote:
>
> #menu {
> background-image: url(./resource.php?name=thejpegfile.jpg);
> }
>
> However, that refuses to work, I'm left without the background image
> although the rest of the page displays fine.
>
> Any ideas why the db proxy script would work when called from
> HTML but not when called from CSS?
It could be a file location issue; resource.php must be in the same
directory with the style sheet. Assuming this is not the case, you may
want to get rid of "./", replace a relative URL with an absolute URL,
and/or enclose the URL in quotes. Try these:
background-image: url("resource.php?name=thejpegfile.jpg");
background-image:
url("http://yoursite.com/resource.php?name=thejpegfile.jpg");
Cheers,
NC
[Back to original message]
|