what is the best practice for importing css file in visualforce page?

+1 vote
asked Nov 27, 2015 in Developer by bukolasf (400 points)

1 Answer

+1 vote
answered Dec 4, 2015 by darsh (3,020 points)

Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files.

Using a static resource is preferable to uploading a file to the Documents tab because:
You can package a collection of related files into a directory hierarchy and upload that hierarchy as a .zip or .jar archive.
You can reference a static resource by name in page markup by using the $Resource global variable instead of hard coding document IDs.

Welcome to I Can Crack, where you can ask questions and receive answers from other members of the community.

68 questions

47 answers

3 comments

5,318 users

...