Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.71 KB

File metadata and controls

56 lines (44 loc) · 2.71 KB
title description ms.custom ms.date ms.reviewer ms.suite ms.tgt_pltfrm ms.topic applies_to helpviewer_keywords ms.assetid caps.latest.revision author ms.author search.audienceType
CSS web resources (Developer Guide for Dynamics 365 Customer Engagement (on-premises)) | MicrosoftDocs
Learn about using cascading style sheet (CSS) web resources to create style sheets for use in webpage web resources.
10/31/2017
pehecke
article
Dynamics 365 Customer Engagement (on-premises)
web resource, css
7794a5f1-2055-426b-985b-c9ad23fcd1ad
16
JimDaly
jdaly
developer

CSS web resources

Use cascading style sheet (CSS) web resources to create style sheets for use in webpage web resources.

Capabilities of CSS web resources

With CSS web resources, you can manage the appearance of webpage web resources by linking them to a shared library of CSS styles.

Limitations of CSS web resources

Like all web resources, CSS web resources are only available in the [!INCLUDEpn_microsoftcrm] security context. Only licensed [!INCLUDEpn_crm_shortest] users who have the necessary privileges can access them.

Referencing a style sheet web resource from a webpage web resource

All web resources can use relative URLs to reference each other. In the following example, for the webpage web resource sample_/content/contentpage.htm to reference the style sheet web resource sample_/styles/styles.css, add the following example to the head element of sample_/content/contentpage.htm:

<link rel="stylesheet" type="text/css" href="../styles/styles.css" />  

To reference a style sheet from a different publisher, the path must include that solution publisher customization prefix. For example, for the sample_/content/contentpage.htm page to reference the MyIsv_/styles/styles.css page, the href parameter value should be ../../MyIsv_/styles/styles.css.

Note

References included in code between web resources aren’t tracked as solution dependencies.

See also

Web Resources for Dynamics 365 Customer Engagement (on-premises)
Using Web Page (HTML) Web Resources
Using Script (JScript) Web Resources
Using Data (XML) Web Resources
Using Image (JPG, PNG, GIF) Web Resources
Using Silverlight (XAP) Web Resources
Using Stylesheet (XSL) Web Resources
WebResource Entity

[!INCLUDEfooter-include]