Monday, January 10, 2011

Call your custom CSS in sharepoint

When you wish to use your own custom Css in sharepoint but do not know how to call it in your master page, use the following line in the <head> of your master page:


<SharePoint:CssRegistration name="<%$SPUrl:~SiteCollection/Style Library/~language/Core Styles/Style.css%>" runat="server"/>


"~language" must be changed to the language in which your style is, i.e: en-us


or you can use the following line:


<SharePoint:CssRegistration name="~url of stylesheet" runat="server"/>

No comments:

Post a Comment