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

1
vote
1answer
50 views

Why does ElementById return null for a Sharepoint app?

I'm trying to get the an element's ID tag using JavaScript in order to manipulate the styles. The element is created by an app from the Office Store but I would like to change the look. <div class=...
0
votes
1answer
183 views

Update to Custom CSS in Master Page Not Reflected

This is a follow up to my question here. A custom CSS file is referenced in my customer master page, like this: <SharePoint:CssRegistration Name="/_catalogs/masterpage/custom.css" runat="server"&...
0
votes
0answers
25 views

Masterpage template not loading completely

We recently migrated our SharePoint server to a new server. After the migration the site showed correctly, but after we attempedt to modify the masterpage the custom css files are no longer being ...
1
vote
1answer
50 views

Add divs on the SP master page header?

I am new to sharepoint design or design in general and I have just started learning css. Can someone show me how to insert divs in the master page's header as it is shown in the print screen below? ...
0
votes
0answers
41 views

DOM Manipulation Improvement

I am using jQuery selectors as post processors in my SharePoint application - jQuery post processing works out well in terms of DOM manipulation but the performance is extremely slow. Can anyone ...
1
vote
0answers
103 views

CSS not rendering in SharePoint 2010

I have created a CEWP in which I have been displaying custom page. I have created a library within which I have stored all my text, css, js, img (separate folder). To call all these files, I have ...
1
vote
0answers
53 views

Page view in normal Chrome browser and as SharePoint site page

I have created a page using HTML and CSS table and tried to display this page as a SharePoint site page. However when i viewed this page as SharePoint site page all the divs got jumbled up and was ...
0
votes
1answer
66 views

AspNet TreeView - UI Issues

I must admit I don't take pride in my UI skills - I have been working towards a SP Webpart functionality that involves 3 custom Treeviews of varying document libraries. Issue with AspNet TreeView is ...
0
votes
1answer
60 views

How do I stop a list overflowing its webpart and overwriting the webparts below it?

I am using SharePoint 2010. I created three linked lists and they worked fine. Especially the first list, as it displayed all the records with a scroll bar. This allowed the user to search all the ...
0
votes
0answers
8 views

Unable to add custom css rules or referecne a custom css file inside a site page using “code snippet” [duplicate]

I have added a site page inside my team site. For this site page i want to reference a custom css file. so i did the following :- 1.i upload the custom css (s.css) file inside my "Style library" on a ...
0
votes
1answer
40 views

unable to attached a custom CSS on a site page using “code snippet”

I have added a new aspx site page inside my team site and I want to reference a custom style sheet inside this site page only. So what I did is I edited the page then I chose to add a code snippet, ...
0
votes
0answers
21 views

original CSS of sharepoint corrupted!

I change the original CSS file of SharePoint.I know it is bad idea. now all my site are not working correctly. My question is how i can fix this files or restore to previous?
0
votes
1answer
46 views

custom CSS file

I created a custom CSS file and I linked the file using "Master Page Setting" alternate CSS URL option to the SharePoint 2013 site. It works fine in my computer but it doesn't work from an user's ...
3
votes
1answer
160 views

SharePoint 2013 - Load JavaScript or CSS file only if not in edit mode

From a custom page layout, for a publishing site collection, how can I tell SharePoint 2013 to display... <script> console.log('this should display in non-edit window'); </script> ......
0
votes
1answer
118 views

How do I implement CSS that only effects Wiki pages?

I have a css file referenced in my site's master page that changes the header margins. However, I only want this CSS to affect headers on Wiki pages. I also want to avoid having to use a special class ...
3
votes
1answer
64 views

Change color using CSS Sharepoint Online

I am using one of the default templates for SharePoint branding. How do I easily tweak the color as shown below in SharePoint Online? I Googled with no help. So far I changed the background using a ...
0
votes
0answers
73 views

Picture Library SlideShow - Images off center

I added a Picture Library Slideshow web part, but the images it plays are not aligned properly. There's a giant whitespace between the Web Part title and the image. Does anyone know how to eliminate ...
0
votes
2answers
186 views

Reset/Remove Masterpage style on page layout

I have a problem that requires me to remove all masterpage styles from my layout page and add custom css styles to the layout. I have been able to add the custom css to the layout but don't know how ...
0
votes
0answers
48 views

Cannot save edited file css/js under SiteAssets

For SharePoint development, we only use client side programming (Javascript). I am used to place js or css files under SiteAssets. I have problem with only one of my site. When we upload or copying ...
0
votes
1answer
426 views

Change menu text color on hover

I am trying to get the colour of all text to change when I hover over the menu item/sub-menu item (it goes down multiple levels). Currently it works only when I hover over the text it's self which ...
0
votes
0answers
71 views

How to add custom css to a Sharepoint App (iframe)

I add the contact us form app from the store and I have a custom template in my site collection but the app see so bad, so I need to shande the colors of the app. How can I do that? This is how it ...
0
votes
0answers
63 views

SharePoint 2010 background image

I am having some trouble in applying a background image to my SharePoint home page. I have been able to use the following code on my page to add the image (I have been playing with bits to try and get ...
0
votes
2answers
112 views

CSS strage behaviour: style title with background changes colour according to other elements

I managed to change the style Title with background (of the summary links) by changing one color in the file //domain/_catalogs/theme/Themed/141089E3/controls15-51FFDD78.themedcss The color was ...
0
votes
0answers
83 views

Select2 in Sharepoint Application Page

Have a Sharepoint application Page where I use Select2 4.0 for Searchable Dropdown List. On my development PC everythink works fine but on any Client the CSS seems to be broken (Both use IE11). On ...
0
votes
1answer
26 views

Block css on a menu generated from XML

I have this XML statement for a menu <MenuItem> <Title>Group</Title> <Url>#</Url> <Items> <MenuItem> <Title>HR</Title> <...
1
vote
0answers
238 views

How to prevent column filter/sort PopUp menu in List View (XsltListViewWebPart) from being “cut off” when the web part has a fixed width/height

(This is for SharePoint 2013.) I am having a hard time figuring out the "css magic" to prevent the "Pop Up" menu (than appears when you click on a Column in a List View) from "cut off". Basically, ...
0
votes
3answers
139 views

Sharepoint CSS : dynamically add SharePoint:CssLink using javascript/jquery

How to add CSS Link dynamically to elements? $('head').append('<link type="text/css" rel="stylesheet" href="my css path">'); The below code doesnt work because we need to specify the url/...
0
votes
0answers
66 views

How to remove Master Page for treeview picker or date time picker controls in sharepoint? ms-dialogHidden is not working for such controls

The style ms-dialogHidden is used for hiding the unwanted master page header elements in modal dialog boxes. For more information: http://ericoverfield.com/sharepoint-2013-tricks-hide-elements-in-...
0
votes
1answer
84 views

Editing the CSS of a Form.aspx that has a custom WebPart

I have a rich text field that is displaying in small font and light gray. This needs to be dark and larger. Here is the FormField on the customNewForm.aspx. <td width="400px" valign="top" ...
1
vote
1answer
41 views

Custom Header for SP10

I'm trying to create a custom header without using SharePoint designer. I am trying to use CSS currently but I when use this code the picture repeats more than once and the header is too narrow. .ms-...
0
votes
1answer
382 views

The condition Greater Than (>) cannot work in my jquery code [closed]

I need to check the number of characters in class span, then change CSS according to the number. For example, if length of title is less than 29, the title color should be yellow. If length of title ...
0
votes
1answer
23 views

How to select entire texts in class span [closed]

I have an array title value with the class .block .title h2 span, I want to select entire texts in this class and check every title length. my script is x=$(".block .title h2 span").text()[i]; y=x....
1
vote
1answer
31 views

Language independent use of the cssregistration control

Is it possible to use the cssregistration control but not let it reference to a language folder? I want to use the cssregistration control to be able to use revisions for my stylesheets. This way, ...
2
votes
1answer
44 views

Padding or margin for CEWP

I have added a link to another page via a CEWP but I need to move the position of the link to the top of the web part. I have attached a screenshot which will demonstrate the issue better. I need ...
4
votes
1answer
370 views

Can we use HTML 5.0 and css 3.0 on non-publishing site e.g Team site?

in SharePoint 2013 can we use HTML 5.0 and css 3.0 on non-publishing site e.g Team site? In this case publishing feature is not activated in the team site. What is best practice? Or should we use ...
0
votes
0answers
80 views

Can I customize Alert Me setup dialog

I am working on SP2013 on-premise standard edition. When clicking "Alert Me" button on ribbon, the default SubNew.aspx form will be called. I need to customize the form a bit so that: When setup ...
0
votes
0answers
92 views

SharePoint Designer 2010 hover over a button

I have an .png file in a content editor web part on a SharePoint 2010 site collection. The .png image has four buttons on it. I need to be able to cut out these buttons (like using hotspots). Then ...
1
vote
1answer
235 views

Set subsites to inherit custom css/masterpage from site collection level

Is there a way to have all subsites inherit a custom master page/css styling from a site collection location? The inherited master page / css will be placed at the site collection level but won't be ...
0
votes
1answer
190 views

Group by field using jQuery

Say I didn't want to use the Group By option in an out of the box view to group my list by a certain field. Is there a way to achieve this using jQuery, JavaScript or something other front-end code?
5
votes
2answers
119 views

How to display counter

Is there a way to use jQuery and Css to pop up notification to user's breadcrumb area for user's open Tasks. I can drop a web part which gets all the pending tasks for browser's user. I see following ...
0
votes
1answer
96 views

Content Editor - ordered list second level

I wanted to create multilevel ordered list in SharePoint 2013 Content Editor, with continuous counting, including numbers from upper levels. 1. Planes 2. Cars 2.1. Ferrari 2.2. BMW 3. Trains ...
0
votes
2answers
84 views

How to remove default zones (or change layout) from blog default homepage?

Yes, i can use css .ms-blog-MainArea {max-width:100%;} .ms-blog-LeftColumn {display:none;} .ms-blog-postList {max-width:100%;margin-right:0px;} but that is looks like "Piece of kludge". PS Is ...
0
votes
0answers
207 views

SharePoint 2013 randomly get ERR_CONNECTION_RESET or ERR_SOCKET_NOT_CONNECTED on some .CSS/.JS files

I use sharepoint 2013 and I have a strange problem. I get random ERR_SOCKET_NOT_CONNECTED or ERR_CONNECTION_RESET error on certain .css or .js files (in Google Chrome; in Internet Explorer I get ...
3
votes
2answers
197 views

The same CSS displays different view in SharePoint 2013

I have a customed CSS file. I add it in my farm solution and then deploy. And it works well. But some persons do not have same view as me. I don't know why. We are in the same company, have the same ...
0
votes
1answer
806 views

Import CSS File to Jslink

How can i import .css file to .js file ? I m not talking about html page. Html page is not in our control. i m using share point inbuilt page Newform.aspx and applying jslink on this page. in jslink ...
1
vote
1answer
464 views

Add css to masterpage (SharePoint Online/Office 365)

I have a css to hide list search box on document libraries. It's in the SiteAssets library. I can edit a document library view and add Content Editor webpart and add css reference and able to hide. ...
0
votes
1answer
56 views

Select ID and class at the same time in CSS in SharePoint 2013

I have a page as blow: <ul class="ms-cui-tabBody ms-cui-tabBody-or" id="Ribbon.EditingTools.CPInsert" role="tabpanel" aria-labelledby="Ribbon.EditingTools.CPInsert-title" unselectable="on"> ... ...
3
votes
1answer
2k views

How to reference the Site Collection URL inside the src attribute

I added a custom script to my "Style Library" folder under a site collection. The site collection URL is http://servername/HR. So to reference the script inside my master page I wrote the following: &...
1
vote
4answers
549 views

Best practice location to deploy CSS/JS/image files

For SharePoint development, I am used to placing all the images/CSS/JS files into the mapped layouts folder (..\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS) using Visual Studio. ...
0
votes
1answer
119 views

Hide some folders from my “Tree View”

I am working on an enterprise wiki site collection inside SP 2013.now i have enabled tree view which display all the folders as follow:- But i only need to show the folder named "HR" and its ...