Posts

Showing posts with the label Css

Hide Download a Copy option from Ribbon and ECB SharePoint 2010 Document Library

Hey if you want to remove "Download a copy" option from SharePoint 2010 document library then add the below code. Now it depends on the requirement  1. If it has to be disabled in specific library only then  add a content editor web part and add the below code as html. 2. if it has to be disabled throughout the site then it is recommended to put it in the Master page. The Css hides the icon in the ribbon whereas the JavaScript overrides the default function of ECB to render the Send To option. <style type="text/css" > a[id$='Ribbon.Documents.Copies.Download-Large'] { display:none; } </style> <script type="text/javascript"> AddSendSubMenu = function (m,ctx) {} _spBodyOnLoadFunctionNames.push("resetAddSendSubMenu()"); function resetAddSendSubMenu(){ AddSendSubMenu = function (m,ctx) {}; } </script>

Css Circles

Hmmm with the cool features of  CSS 3.0 we can draw shapes as well.Here you will find a simple example to create a circle using a div tag and Css. .tabCircle { border-radius:90px; /*border radius should be half width and height*/ -moz-border-radius: 70px;         -webkit-border-radius: 70px;  width:175px; height:175px; text-align:center; line-height:175px; color:white; font-weight:bolder; cursor:pointer; margin: 5px; } You can vary the size of the circle using the width height and border-radius property. Click Here for live Demo:  CSS Circles Demo References:  Hmmm well i refered many sites but the ones which helped me a lot are https://css-tricks.com/examples/ShapesOfCSS/ http://www.css3shapes.com/

Hide Recent Changes and Quick Launch section in Wiki Page SharePoint

To Hide the Recent Changes Section in Wiki Pages just add the following style in a content a content editor web part <style>  .s4-recentchanges  { display:none;  }  </style> To Hide Quick Launch for any specific page just add the below style. <style> #s4-leftpanel{ display:none } .s4-ca{ margin-left:0px } ​  </style>