Pages

7 Jan 2014

How to hide ribbon controls in NewForm, EditForm, and Dispaly form and created by, modified by information for lists and libraries?





















The following is the CSS code for hiding ribbon bar in list forms.

<style type="text/css">
            #s4-ribbonrow, .ms-descriptiontext, .ms-cui-topBar2, .s4-notdlg,
           .s4-pr s4-ribbonrowhidetitle, .s4-notdlg noindex, #ms-cui-ribbonTopBars, #s4-titlerow,
            #s4-pr s4-notdlg  s4-titlerowhidetitle, #s4-leftpanel-content
             {
                   display:none !important;
             }

            .s4-ca
             {
                  margin-left:0px !important;
                  margin-right:0px !important;
             }

</style>

No comments:

Post a Comment