I have two orgs, dev and sandbox. I've written a VF page using VF components like pageblock and applied my own CSS to them. The problem is that in my dev org the new style is not applied while in the sandbox it does.

Does anyone know why?

  • 1
    hardcoded url ? – Samuel De Rycke Oct 15 '13 at 10:46
  • static resource – Dedo Oct 15 '13 at 11:13
  • 1
    Can you post a small snippet of your VF page? Are you using URLFOR? – Mike Chale Oct 15 '13 at 12:18
  • Are your styles applied by element ID or by class? – Mark Pond Oct 15 '13 at 17:06
  • applied by class – Dedo Oct 15 '13 at 17:11

How are you storing the CSS? if you have stored as a static resource remember to copy that static resource from your sandbox to your dev box. If it is inline or it is in static resources but not working try using firebug or similar to debug in browser.

|improve this answer|||||
  • static resource; I made sure its the same in both orgs – Dedo Oct 15 '13 at 11:13
  • Also check that the static resource content type is "text/css" in both orgs. – Keith C Oct 15 '13 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.