Hot answers tagged

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 ...


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 ...


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;" ...


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

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

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 ...


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

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

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


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 ...


1

If you're not going to use InfoPath then you're definitely going to be looking at creating a custom form using HTML and some other custom logic to do the submission for you. The lowest barriers to entry will be JavaScript on the client, or C# in a provider hosted Add-in or server solution. I strongly recommend you consider JavaScript (REST or the JavaScript ...


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>



Only top voted, non community-wiki answers of a minimum length are eligible