Hot answers tagged css
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 ...
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 ...
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.
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.
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.
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