PDA

View Full Version : css image path


testebr
11-10-2007, 03:50 AM
Hi,

My board is installed at mydomain.com/forum but I have one custom page in main domain, mydomain.com/custompage.php.

How to I can fix the path of images in css file without add my domain manually at each image of css?

Thank you!

Lynne
11-10-2007, 03:30 PM
Here you go: https://vborg.vbsupport.ru/showthread.php?t=97298

testebr
11-10-2007, 09:10 PM
You dont understand, my problem is with path of background images in css file. Example:

background: #FFFFFF url(images/stylexxx/my_bg_test.jpg);

Tree of my board:

domain.com
> forum/
> forum/images/stylexxx/

If I access page domain.com/forum/index.php my background image in css will load with no problem, but and if user access my custom page in main domain.com/custompage.php ?

images/stylexxx/my_bg_test.jpg = error 404 not found. Understand now?

Thanks

Lynne
11-10-2007, 10:27 PM
Mine is set up like yours. I have the background url written like yours but I have the css in the filesystem (and I use that hack) and everything looks fine on my forum. So, I'm not sure what else to suggest unless you want to put the full path in there.

testebr
11-12-2007, 10:41 AM
You are right, I change and work fine. Sorry for my mistake.

cya