Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am loading a logo image from the Style Library using the following css statement:

background:url("../Style Library/Images/LogoHeader.jpg") no-repeat scroll 0 0 transparent;

When I deploy the same branding solution in a 2010 environment, this becomes:

background:url("../_vti_ghost/Images/LogoHeader.jpg") no-repeat scroll 0 0 transparent;

Needless to day, this borks the branding and I can't find any reason for this happening nor can I find a reference to _vti_ghost anywhere on the internets.

Help?

share|improve this question
    
how did you deploy the css? –  Mauro Nov 18 '10 at 15:38
    
Everything was deployed as part of WSP. We ended recreating the solution in VS2010 which made this issue irrelevant. –  Bob Hickman Dec 17 '10 at 23:49
add comment

2 Answers 2

How is your branding being deployed? It sounds to me like you're deployed a branded master page that's ghostable, so ../Style Library doesn't exist relative to the ghostable location of the master page. A better practice is to use /Style Library/images/logo.jpg, since relative to the root, that path will never change.

share|improve this answer
add comment

Have you tried removing the space between Style & Library as I believe it is rendered StyleLibrary and not Style[space]Library.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.