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
ButuzGOLButuzGOL 

Css conflict with SalesForce

I have app. This app has its own css and when I deploy it to salesforce my app has conflict with salesforce css, so my app and salesforce design look awful.

How can I make some kind of css namespace for my app to remove conflict with salesforce ?

JitendraJitendra

Hi,

There is no way to add namespace or something in CSS. You can either disable the CSS of Salesforce on your app however i dont think that it would work.

 

You need to use class names and Id or selectors in your CSS unique.

 

In case there are few conflicts and you want that your css should take the precedence over the CSS of Salesforce then use "!important" in CSS.

 

There are lots of free extension availble for chrome to view the resultant CSS and debug your style sheet.