Tag Info

Hot answers tagged

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


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

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.


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.


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"



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