Friday, August 27, 2010

Print friendly SharePoint Content Page

lt;link rel="stylesheet" href="rajprint.css" type="text/css" media="print" /gt;

rajprint.css
/* print styles*/

A:link, A:visited {background: white; color: black; text-decoration:none;
font-weight:normal;}
/* to hide the print button*/
#noprintSpan{
display:none
}
/* to remove the blue border*/
.ms-bodyareaframe {
border:none 0px;

}
/* CORE.CSS override */
.ms-leftareacell,.ms-globallinks,.ms-siteaction,.ms-areaseparatorleft,
.ms-rightareacell,.ms-areaseparatorright, .ms-areaseparatorcorner,
.ms-titlearealeft,.ms-titlearearight,.ms-searchform,.ms-banner,
.ms-buttonheightwidth,.ms-buttonheightwidth2
{
display:block;
visibility:visible;
}

/* hide header * quick navigation*/
.ms-globalbreadcrumb { display:none; visibility: hidden; }
.ms-globalTitleArea { display:none; visibility: hidden; }
/* #nav-wrapper { display:none; visibility: hidden; } */
.ms-titlearealeft { display:none; visibility: hidden; }
.ms-navframe { display:none; visibility: hidden; }
.ms-nav { display:none; visibility: hidden; }
.ms-banner{ display:none; visibility: hidden; }
.ms-titlearea{ display:none; visibility: hidden; }



/* move content to the left */
.ms-bodyareacell, #above-main { margin: 0 0 0 0 }

/* fonts normalization
.ms-formbody { font-size: xx-small} */

/* remove the actions buttons */
.ms-toolbar { display:none; visibility: hidden; }
.ms-siteaction{ display:none; visibility: hidden; }

/* expanding edit form controls on the width of the screen */

#onetIDListForm { width: 100%; }
.ms-formlabel { width:20% }
.ms-formbody { width: 80%; }
.ms-long { width: 100%; }
.ms-rtelong { width: 100%; height: 400px; }
.ms-rtetoolbarmenu { width: 100%; text-align: left; }
TEXTAREA.ms-long { width: 100%; }
.ms-formbody SPAN SPAN DIV { width: 100%; }

No comments:

Post a Comment