Hello,
I wonder that I specify a path of image folder in css file as below.
background: #FFF url(../images/bg.gif) repeat-x;
At my develop computer is no problem . BUT...
the images did not show once I deploy to production computer.... why ?
any expert please advice....
Natchaya..
Loading

Shen Hengbin94 reputationPosted Jan 11, 2012, 8:22 PM EST
For example .
Case A
--ImageFolder
--CssFolder
-- CssFile // here , you should write url(../ImageFolder/bg.gif)
Case B
--ImageFolder
-- CssFile // here , you should write url(ImageFolder/bg.gif)
Ajitender VijayRank #6,843 · 255 reputationPosted Jan 11, 2012, 7:39 PM EST
Check images folder location path is correct or not.
try this
background: #FFF url(/images/bg.gif) repeat-x;
or
background: #FFF url(images/bg.gif) repeat-x;
Thanks
Ajitender vijay
natchaya khamkuna31 reputationPosted Jan 11, 2012, 9:29 PM EST
doesn't work .
Attahced is my code..
Shen Hengbin94 reputationPosted Jan 11, 2012, 9:40 PM EST
I have read your source , but sorry that , i cannt excute it .
But from your source , you are in case B in my last post .
So you should to change your url(../images/bg.gif) to url(images/bg.gif)
natchaya khamkuna31 reputationPosted Jan 11, 2012, 9:59 PM EST
Thank you so much.
It's working.. case no. 2
Shen Hengbin94 reputationPosted Jan 11, 2012, 10:44 PM EST
you are good.
Krishna GaradRank #191 · 12.8K reputationPosted Jan 12, 2012, 12:22 AM EST
We have accepted answer also. So please accept the answer.