IMPORTANT: This version of Sitefinity CMS is out of support and the respective product documentation is no longer maintained and can be outdated. Use the version selector to view a supported product version.
You can add CSS resources to your widget, page, or master template only through markup. You have two options to add the CSS:
No matter which option you choose, your CSS file is loaded in the browser, but in a different manner.
NOTE: To see how to include CSS styles using Sitefinity CMS CSS widget, see CSS widget.
To include CSS resources, you register the Telerik.Sitefinity.Web.UI assembly in the markup of your widget, page, or template. Thus, you have access to Sitefinity's ResourceLinks widget via the sf tag prefix. To do this:
In the code above, you register the Telerik.Sitefinity.Web.UI assembly with the following tags:
You can also add the CSS file as an embedded resource by setting the build action of your CSS file to Embedded Resource. To do this:
Back To Top
To submit feedback, please update your cookie settings and allow the usage of Functional cookies.
Your feedback about this content is important