New answers tagged

0

Try to embed javascript this way: <script type="text/javascript"></script> It worked for me


2

Most often there are no IDs. And hardcoding IDs (generated by SharePoint) in CSS rules will get you in trouble sometime in the future. When you add,(re)move other WebParts the IDs can change. Learn how to use CSS selectors to target with metadata used in other attributes. http://www.w3schools.com/cssref/css_selectors.asp Although not perfect, the ...


1

Inspect the webpart after it has rendered on the page. Look for it's element ID, then use that to apply styles. Afterwards you will be able to drop css onto the page to alter it: <style> #RenderedWebpartID { /* css attributes here */ } </style>


5

You can use ~sitecollection instead of ~Site <SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/awesome.css %>" runat="server" /> For html master page, it will be: <!--SPM:<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/awesome.css %>" runat="server" />-->


2

First, unless that's a typo, it looks like you are missing a period between your class selectors, so it should be: #id .ms-vb2.ms-vb-lastCell But if the ID still isn't working, taking a quick look at a list view web part (in SP 2013, might be different in 2010, not sure what you are working in), it looks like the table has an attribute summary whose value ...


0

Right now I am doing like this: <SharePoint:SPSecurityTrimmedControl PermissionsString="ViewPages" runat="server"> <link rel="stylesheet" type="text/css" href="https://sharepoint.com/web/SiteAssets/css-readonly.css" /> </SharePoint:SPSecurityTrimmedControl> <SharePoint:SPSecurityTrimmedControl PermissionsString="ManageWeb" ...


0

<SharePoint:SPSecurityTrimmedControl Permissions="whatever" runat="server"> <style type="text/css"> #some-element { display: block; } </style> </SharePoint:SPSecurityTrimmedControl> Is that what you're asking?


1

No 2007 handy but depending on your browser coverage you can easily do that with CSS: .ms-vb-icon a { pointer-events: none } .ms-vb-icon is a sample selector from icons in document libraries, you need to identify how to target the column that contains the link with the thumbnail using your Web Developer Tools/Inspector. ...


1

<asp:Content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server"> <PublishingWebControls:EditModePanel runat="server"> <!-- with the built-in control --> <SharePoint:CssRegistration Name="somepath/somecss.css" runat="server" /> <!-- classic --> <link href="<%$ ...


1

There are two reasons that it can happen: Browser is picking up Caches CSS file If you upload file in SharePoint (not in _layouts folder), and it is not published as major version, user won't be getting CSS with latest changes. But in both cases, you need to provide some query string like version number for CSS file: <link ...


0

When in your site, the feature Minimal Download strategy is activated, the changes in CSS is not effective. You need press ctrl + f5 or disable this feature.


2

Try adding a query string at the end of the style sheet reference. Like, <link rel="stylesheet" type="text/css" href="myFile.css?v=1">. That way the browser downloads it again and does not use the cached copy. Change the query string value every time you run into this issue.


1

sharepoint has 2 master page, system and site, views and all other admin related pages uses system master page, sites pages uses site master page, make changes accordingly. see following screenshots, first screen shows site collection features need to be activated at site collection level, second screen show feature need to be activated at site level and ...


0

The error appears to relate to the problem that I posted here Unable to get property 'PageManager' of undefined or null reference SP2013 I have now fixed that error, so I'm assuming that this problem will be fixed as well. It makes sense to move the code out of the Calculated column into the JS, so this is what I am going with, and the solution ...


1

I would use CSS on the page like this: img[class$="contactFieldCtrl"] {width:76px; height:96px;} That should resize any that ends with the text "contactFieldCtrl" to the proper size. http://www.w3schools.com/cssref/sel_attr_end.asp


0

If it works to use a wiki page a quick, easy way to center web parts would be to add a table on the page and place your web part in a cell. It's easy to change the width of each column as well as using one of the default styles to hide the table. You may not want to use a wiki page for what you are doing. Then you would have to use css to find the web part ...


0

you could try to enclose all your code into a div and apply some css, like this <div id="content"> This is a DIV block that is to be centred. I don't want the text to be centred, though, just the block. </div> #content { width: 700px ; margin-left: auto ; margin-right: auto ; } greetings


0

Try this, it worked for me. Try to use !important if it doesn't work. #s4-workspace{ background-image: url(../images/image.jpg); background-size: cover; overflow-x: hidden;}


2

Change the background-color property for the below classes: div.ms-tileview-tile-titleTextMediumCollapsed .ms-tileview-tile-detailsBox The background-color for both these classes is rgba( 0,0,0,0.6 ) by default. Reducing the last value (0.6) changes the opacity. I have tested this on the promoted links list and it works fine.


2

OK, I completely edited my answer, see answer versioning to get the comlete previous one. Now that I've seen your markup, here what I think: You should use (note ~site instead of ~sitecollection): <SharePoint:SiteLogoImage ID="xxxxxxxxxxxxxxxxxxxx" LogoImageUrl="&lt;% $SPUrl:~site/_catalogs/masterpage/StarterBranding/logo.jpg %&gt;" ...


0

To add some CSS in the site, you do not need to override the CSS file. About how to add CSS to SharePoint, you can refer the following article, which may be useful to you. http://techtrainingnotes.blogspot.jp/2012/05/adding-javascript-and-css-to-sharepoint.html By the way, the corev4.css is in the “v4.master” master page.


0

Open up the site where the list exist using SharePoint Designer. From the left menu, select List and Libraries and find the list where you wanna edit the form. Click on the list and you should see 3 forms available in the window called "Forms" that will include DispForm.aspx, EditForm.aspx and NewForm.aspx. You won't be able to modify the columns on any ...


0

close your sharePoint designer all together from all tab and open it again. Also make sure the refrence url of the css file is correct. Also please specify where have you referred your css file. But first close your SP designer and try again.



Top 50 recent answers are included