Monday, July 16, 2007

Separate css file for each individual site

By Default each site takes the default style as Core.css file (Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\STYLES\core.css).
If we included our custdom classes in core.css that would applied to all sites available in the system. Bcoz its global for all sites in the system.
To apply Site specific Css style
Site Actions -> Site Settings -> Master Page
by default "Use Windows SharePoint Services default styles" is selected. select "Specify a CSS file to be used by this publishing site and all sites that inherit from it" and specify the location of the Css file. Here the changes that you made will be applicable to that particular site only.

1 comment:

Anonymous said...

People should read this.