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
liron169liron169 

CSS definition not working for API 28

I have VF page as PDF + apex class, that currently working OK.

Both are in API 25.

 

If I change the API of the page to 28, than non of the CSS definition are not working (when changing to 27 it's works).

 

Does anyone know what has changed in this API that might causing it?

Best Answer chosen by Admin (Salesforce Developers) 
Sonam_SFDCSonam_SFDC

Are you using @Page by any chance?

 

The @page attribute is not working in version 28.0. To use @page attribute in version 28.0 we need to the following things:

1. Set "applyHtmlTag" attribute of page to "false"

2. Set "applyBodyTag" attribute of page to "false".

3. Add Zhtml><head></head>>body></body></html> tag in visual force page.

 

 

All Answers

Sonam_SFDCSonam_SFDC

Are you using @Page by any chance?

 

The @page attribute is not working in version 28.0. To use @page attribute in version 28.0 we need to the following things:

1. Set "applyHtmlTag" attribute of page to "false"

2. Set "applyBodyTag" attribute of page to "false".

3. Add Zhtml><head></head>>body></body></html> tag in visual force page.

 

 

This was selected as the best answer
liron169liron169

,

Thanks.

 

Can you advise how much it will safe to upgrade the version?

Is it reccomand at all?