Tagged Questions

CSS is the abbreviation for Cascading Style Sheets. CSS is a language used to control the presentation (including colors, layout, and fonts) of HTML and XHTML documents.

learn more… | top users | synonyms

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 ...
0
votes
1answer
105 views

What is the tag for web part description?

I would like to edit the font of the description in my RSS Viewer Web Part. What is the css tag for the description? I tried .description, which was provided from ...
1
vote
1answer
343 views

CSS Not Working on Hosted Site

I was wondering if someone could help me understand why I cannot get CSS to work on a hosted site? I am using SPD 2010, Windows Server 2008, and IE-8. After putting my CSS script inside the ...
1
vote
1answer
644 views

Caching - core.css/corev4.css

For every SharePoint page, the browser loads a new instance of the core.css (or corev4.css) file. Is there a way, in the Master Page, to enable caching for this file?
0
votes
1answer
1k views

WebResource.axd JavaScript errors

I'm getting JavaScript errors on a SharePoint publishing site, just browsing to any page. In IE the errors are like: Syntax error: WebResource.axd Line: 1 Char: 1 Code: 0 URI: ...
1
vote
1answer
89 views

Where is the css file being defined?

I'm editing an aspx layouts and its master page, and somebody has already linked a custom css file in designer in the Manage Styles pane. Where is this defined in the code? I can't find it anywhere. ...
0
votes
1answer
316 views

Position Fixed in SharePoint

I'm trying to create an addon product in MOSS 2007 which tries to position an html element in a fixed position inside SharePoint page using JS and CSS. I want to support IE 6+. What are the ways i can ...
1
vote
2answers
258 views

how can i change .css or addClass of a textbox in a juery change function - help [closed]

I have a change functions as below: All i want is whan a user clicks the button and the value is less than zero change the backgoundcolor of the textbox and viceversa if its greater that. But it ...
1
vote
3answers
322 views

Is it possible to add a custom attribute to the body tag in a master page?

Hello I have a SharePoint 2007 MOSS publishing site that uses a custom master page for most of its pages. I'd like to be able to apply some jQuery to one of those pages only but there's no way to ...
2
votes
1answer
3k views

Add a custom Style to Sharepoint Foundation 2010

I want to add a small snippet of CSS code to create a text block in Sharepoint Foundation 2010, so when users are creating pages, they can highlight a block of text and use the dropdown to add the ...
0
votes
2answers
5k views

Physical location of “Style Library”

I'm a complete newbie in sharepoint so this is an easy question. I've uploaded a .css to the Style Library and am looking for an easy way to change it. (ctrl+s to save and F5 to refresh page) What ...
1
vote
3answers
641 views

Strip publishing master-page for anonymous users

Is it ok to strip a masterpage for all SharePoint scripts and styles? We have custom CSS and all of our scripts are JQuery. Even CQWP will have custom rendering. The reason we want to do this is so ...
2
votes
2answers
188 views

Has anyone seen their 2007 custom css modified in a 2010 environment?

I am loading a logo image from the Style Library using the following css statement: background:url("../Style Library/Images/LogoHeader.jpg") no-repeat scroll 0 0 transparent; When I deploy the same ...
46
votes
16answers
16k views

CSS Files in _Layouts or Document Library?

There's been a lively conversation (such as it can be in 140 chars) lately about whether it is better to put CSS files on the disk in the _layouts folder or to store them in a Document Library in the ...
5
votes
3answers
10k views

How to use JavaScript and CSS in a web part?

I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. I am using publishing portal template. I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net. And I want to ...
0
votes
3answers
3k views

Setting display:none for empty web part zones

Does anyone know the JavaScript for setting display:none on an empty web part zone? I remember seeing it once on a publishing site but now can't find it. This is to avoid the padding and spacing a ...
10
votes
10answers
4k views

Has anyone optimized the front-end (css/javascript files) of a SharePoint site

So it seems to be that Sharepoint's front-end optimization is non-existant. For example, http://dfs.us.dell.com/Pages/DFSHomePage.aspx, according to YSlow, is serving up 14 separate JavaScript files, ...