function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
MikeGillMikeGill 

CSS Background image support in visualforce

Error when using image stored in salesforce. Error "The reference to entity "oid" must end with the ';' delimter"

 

Code with image served from sfdc:

 

	#container { width:830px; height:600px; margin:0 auto; background:#FFF url( https://c.cs12.content.force.com/servlet/servlet.ImageServer?id=015V00000004lAW&oid=00DV00000000Olc&lastMod=1312875334000) bottom left no-repeat; position:relative; }

 

I'm not a CSS expert - but it seems to be related to the additional url parameters passed in. 

 

Any suggestions?

 

Thx

 

Best Answer chosen by Admin (Salesforce Developers) 
MikeGillMikeGill

thanks that worked

All Answers

tom_patrostom_patros

Try single quotes around the path inside url()

MikeGillMikeGill

tried single and double - not luck

tom_patrostom_patros

Hmm - now I'm wondering about the "&" characters - maybe try replacing those with "&" (the HTML entity code)

MikeGillMikeGill

thanks that worked

This was selected as the best answer