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
Neil KimNeil Kim 

About adjusting css

Hi all! It's really general question about develop VF in SFDC platform.

Nowadays, I've worked with web designer and she is not familiar with SFDC.
In this situation, what we do together is, she write down font-end html/css/a little javascript code, and I take it and add Data integration work with SDFC.

The problem is,
I copy all code from html file she has done, and then paste to VF, of course, I need to adjust ref information with Static Resource.
But, many css occur problem like, align:center doesn't work background-color doesn't work something like that.

Is there any reason about it and easy solution?

Thanks in advance.
 
Best Answer chosen by Neil Kim
E Jayaraman IyerE Jayaraman Iyer
Hi Neil,

Salesforce adds its own CSS on its pages. So, to use your own CSS, you will need to add following attributes into your <apex:page>.

<apex:page standardStylesheets = false showHeader = false sideBar = false>

Thanks.
 

All Answers

Neil KimNeil Kim
Looks like SFDC has Css set for basic tag and it has precedence.
Neil KimNeil Kim
For example, inline css is work as expected, however css in script tag and connect it with class="", it doesn't work.

I cannot understand.
E Jayaraman IyerE Jayaraman Iyer
Hi Neil,

Salesforce adds its own CSS on its pages. So, to use your own CSS, you will need to add following attributes into your <apex:page>.

<apex:page standardStylesheets = false showHeader = false sideBar = false>

Thanks.
 
This was selected as the best answer
Neil KimNeil Kim
Thank you really.

I resolved it!