A class of the Microsoft.SharePoint.WebControls namespace which represents a cascading style sheet (CSS) file registration. CssLink reads this registration to insert a LINK element into the resulting HTML page and apply the external style sheet(s) defined by the registration.

learn more… | top users | synonyms

1
vote
0answers
15 views

Inherit background color from SharePoint 2013 theme

Are there any ways to inherit background color of SharePoint theme for any class in a webpart? (That's mean when site theme changed, the css color of classes in my webpart also being changed).
3
votes
1answer
173 views

CSS and master page - Sharepoint online - Office 365

I recently created a custom .css file and dumped it in /Style Library/custom/corev15.css I just created the 'custom' folder and created a duplicate of the original ...
0
votes
1answer
35 views

PublishingWebControls EditModePanel do not work in production environment - can't recieve css file when pagemode edit

<%@ Register TagPrefix="PublishingWebControls" Namespace="Microsoft.SharePoint.Publishing.WebControls" Assembly="Microsoft.SharePoint.Publishing, Version=15.0.0.0, Culture=neutral, ...
0
votes
0answers
12 views

Plain HTML css-links and script-links in a Visual Webpart? (sp2010)

The recommended way of adding js and css to any Sharepoint component is using Sharepoint:CSSLinks and RegisterClientScriptBlock. But I hate it! I like being able to use as much pure HTML as possible, ...
1
vote
2answers
120 views

Display Description of choice column type on top

I have created a list with type Choice and set Description for the same. I have set Radio Buttons as "Display Choices Using". When i click on Add New item the Description is shown at the bottom. Is ...
1
vote
1answer
24 views

CSSRegistration

I am making an aspx page and need to link some css pages. From the root of the site collection the css pages are located in Style Library/CSS/files_here.css My aspx page is located at ...
1
vote
1answer
119 views

Site migrated from SP2010 to SP2013 refer to \Web Server Extensions\14\TEMPLATE\LAYOUTS\

I have migrated some site collections from a SP2010 farm to SP2013 farm. I have fully upgraded a site to SP2013 mode. In the Master file I have code like below: <SharePoint:CssRegistration ...
0
votes
1answer
48 views

SharePoint if statements for registering css

In regular old HTMl we are allowed to do the following to use a css file depending on browser versions: <link rel="stylesheet" href="path-to-styles/css/cssfilename.css"> <!--[if IE 7]> ...
1
vote
0answers
269 views

Sharepoint 2013 : how to add a custom themable css ? (file not found)

Sharepoint looks for my css in /sites/mysite/_catalogs/theme/Themed/549F7A23/foo-6358CA7D.themedcss?ctag=2 when it is in /sites/mysite/Style Library/fr-fr/themable/foo.css (I can reach it via ...
2
votes
1answer
229 views

Responsive design “CssRegistration does not have a public property named media”

I'm currently implementing responsive design on an intranet site. I’ve added plain links in the master page based on min-width and max-width media properties. It works like a charm, but it didn’t when ...
0
votes
0answers
10 views

Groups priviledges to register other members for events

I currently have an event registration site setup but only the individual can register for the course. How can I give certain individuals the rights to register other people without giving them the ...
1
vote
3answers
113 views

how to register a custom css with v4.master without editing the actual file

I would like to add a custom css with v4.master however do not want to edit the actual master page itself. the idea is to load the custom css on the wiki page. do we have any way of doing it?
1
vote
0answers
42 views

What is the best practice to change the default font from a masterpage in a MySite webb application?

I have a mysite web application. In this webapplication there is the my site host site collection. In this site collection I have my custom masterpage with my custom css file registration. This css ...
3
votes
1answer
2k views

CssRegistration After-property with custom stylesheet

I'm using several custom stylsheets in my custom masterpage, but it's important in what order they are rendered. On the first one I use the After property like this: <SharePoint:CssRegistration ...
0
votes
1answer
1k views

Broken DatePicker Calendar Popup

I'm having problems with the DatePicker in SP2013. The control shows fine, but the calendar popup is broken because of a missing stylesheet (the complete sprite sheet image is visible etc.). The css ...
0
votes
3answers
2k views

Styling divs and other css styles to HTML elements in SharePoint 2013

I am following this SharePoint 2010 tutorial where the author is adding styles directly in the html mark-up of the page. When I edit the mark-up in SharePoint 2013 and click OK initially the styles ...
10
votes
2answers
6k views

CssRegistration with $SPUrl doesn't work

I'm using SharePoint 2013 and I have created master page file (as .html) and converted it to .master file. As I have read, I should only modify html file, because all changes will be also registered ...
3
votes
2answers
910 views

Sharepoint site using corev4 AND custom CSS File?

I'm using a custom Masterpage which references a custom CSS File in the header like so: <Sharepoint:CssRegistration Name="CUSTOM/Custom.css" runat="server"/> My custom CSS file is simply a ...
0
votes
1answer
281 views

Detect only ie8 document mode , give users IE8.css file

I'm having problem with document mode. In workspaces we force to document mode into ie8, like <meta http-equiv="x-ua-compatible" content="IE=8"/> How can I detect what document mode all ...
1
vote
0answers
138 views

Popup page, CSSLINK not working

I am on Sharepoint 2013, we migrated from Sharepoint 2010. I have custom popup page which has the following CSS declaration: <head runat="server"> <SharePoint:CssLink ...
8
votes
5answers
10k views

Sharepoint 2013 add css in a page layout

I'm trying to add my custom CSS file in my sharepoint 2013 page layout. I add it with the link tag or with CSSRegistration and when the page is rendered, the css does not appear in the source. Also I ...
2
votes
2answers
2k views

form validation

I am new in javascript. I want to validating a form with five columns. FormDescription My Form Contain 5 input fields and one submit buttom I want following output 1.Initially submit button ...
1
vote
2answers
540 views

Deploying styles only for root site collection or for each site collection

I know how to deploy the masterpages and styles like css, javascripts, images etc, my question is rather what is the best practice? As I deploy the all the requisites on a site collection in the ...
0
votes
1answer
962 views

sharepoint:cssLink returns a broken link [closed]

I'm developing the master page for my company's intranet. I've read that this html will link all default and custom css files. <sharepoint:csslink runat="server" version="4" /> I get back ...
0
votes
2answers
296 views

Server Relative references INSIDE CSS?

CssRegistration does a grand job of referencing the CSS file relative to the site URL you are on. What do you do inside the CSS file? If I'm deploying assets to the /_layouts/images directory, sure ...
0
votes
2answers
521 views

Custom Visual Web Part editable CSS

I am making a custom visual web part in Visual Studio 2010 and I am trying to add a editable CSS style sheet to it. What I mean is I want to make a property that the user can access through the edit ...
2
votes
1answer
2k views

CSS link not added to master page

I have a custom CSS file is in 14\TEMPLATE\LAYOUTS\MyStuff folder. Masterpage markup contains the following: <SharePoint:CssLink runat="server" Version="4"/> <SharePoint:Theme ...
0
votes
1answer
779 views

Include custom css files in SharePoint CssLink control

Is it some how possible to include your custom css files in this control? <SharePoint:CssLink runat="server" Version="4"/> I usually wind up inserting the same 3 custom css files in the ...
4
votes
2answers
4k views

Understanding problem: How to add a stylesheet to a web part

Well, I try to add a css stylesheet to my web part but it didn’t work… I read that there are many ways to a css file into a web part, but I didn’t understand them…. First I installed the Sharepoint ...
1
vote
1answer
370 views

Debug CSS Registration

I'm working on a custom Blog site template that's quite similar to the OOTB Blog site template. I'm having issues with CSS registration of the OOTB blog.css file. (i.e. via ...
6
votes
3answers
2k views

Problem ordering the CSS references when registering CSS files with the CssRegistration class

I'm developing a web part which needs some custom CSS files. So I'm using the CssRegistration class to add them to the page header. The code registers 4 CSS files which got deployed to the layouts ...