.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Forum >> SharePoint >> Post New QuestionBookmark and Share Subscribe to Forum

how can apply css in sharpoint?

Posted By: Sagar Pardeshi     Posted Date: February 08, 2010    Points:2   Category :SharePoint
How can apply css in sharpoint using sharpoint designer inline or both

Author: Lalij Mer             
Posted Date: February 08, 2010     Points: 5   

Apply css style sheet to Sharepoint master page has 2 ways:
1. In the header section, you can add any custom cascading styles sheets by using a simple link tag.
2. Use <SharePoint:CssRegistration> tag. This approach offers a few advantages because you have an option to use SPUrl, which returns the URL of the current site. css style sheet of this approach is stored in the Sharepoint content database instead of file system.

<head runat="server">
<asp:ContentPlaceHolder runat="server" id="head">
<asp:ContentPlaceHolder id="PlaceHolderPageTitle" runat="server" />
<Sharepoint:CssLink runat="server"/>
<!- Product Group Custom Styles ->
<%-SharePoint:CssRegistration name="<% $SPUrl:~SiteCollection/Style Library/PG/PG.css%>" runat="server"/-%>
<link type="text/css" rel="stylesheet" href="/_layouts/1033/styles/PG/PG.css" />
<!- End Product Group Custom Styles ->
<asp:ContentPlaceHolder id="PlaceHolderAdditionalPageHead" runat="server" />

Show this link


Please Check my answer if you help....
Thank You...


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend