You are here: Re: PHP4 mime headers and CSS background-image « PHP Programming Language « IT news, forums, messages
Re: PHP4 mime headers and CSS background-image

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация