Tag Info

New answers tagged

2

Most likely the location you saved the css file requires the document to be checked in and approved. Check that it is version 1.0 and approved.


3

Your first approach is the best way to add a custom css file to a master page. Backing up master page and then creating a custom master page, adding custom CSS file to Style Library and then adding external CSS link in <head> tag. All steps are the recommended and best approach. Just make sure to add the external css link just above the content place ...


2

I would recommend to use the 'Alternate CSS URL' for adding custom CSS to a SharePoint Site. Go to Site Settings -> Master Page -> 'Alternate CSS Url'. Browse for the custom CSS file and save it. This adds the CSS to the site without any change to the master page.


0

Try checking in the Master Page link from Site Settings. I see Alternate CSS there.


0

Check your custom master page for a similar entry as below <SharePoint:CssRegistration Name="Themable/oslo.css" runat="server" EnableCssTheming="true" /> Now instead of modifying oslo.css. Create a copy of this file C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\1033\STYLES and upload it under Master Page ...


3

Update an oslo.css is not recommendable approach because it can break other elements which you might not find even. You should check with developer tools about the CSS. Which CSS is breaking the layout and try to override that CSS with your custom CSS in the masterpage. Here is the great solution Responsive SharePoint available that you can use with ...


0

If you are using SharePoint designer, then you can upload your HTML file under Site pages section and just pass the URL.


1

If one of the elements mentioned in your question is a block-element, you can change its height: 0px. If you don't get it to work, or it isn't enough, you have to add a negative margin-top to the content element.


1

I had the same issue with other element files deployed in a sandboxed solution that would not be updated even after restarting / redeploying etc. In the end the following was simply required in the element in my Elements.xml file: ReplaceContent="TRUE"


0

This seems similar to this other question. By looking at your styles, I would say that you have an SP2010 site and the styles are matching properly. The possible caveats are: a) you will have to add the CEWP on each page b) your css file may not fully checked in and/or published so that all users can see it (or the page itself) c) if you have anything ...


0

Using SharePoint designer, select the image and click the "center" button in the Paragraph section of the Home ribbon. That may not work depending on how your image was inserted, so the alternative is to find the image in the code view (shortcut: use the split view and select the image in design view window to get it selected in the code view window). Wrap ...


0

If you are not using Quick Launch then it is better to remove from the Master Page instead of hiding. There is no problem doing that.


0

It might be getting overridden somewhere else. You can try #resultcontent { height:350px !important; } Also, the x64 version of IE typically does not play well with SharePoint. Try the 32 bit version.


0

According to the specification you cant match content within an element. jQuery solution You could use the :contains selector to get elements based on their content, the following example demonstrates how to hide question: var q = $('h3.ms-standardheader,.ms-vb:contains("the next question")'); q.hide(); //hide question caption q.next().hide(); //hide ...



Top 50 recent answers are included