The CSS media type “print” allows authors to specify a stylesheet that is only used when printing. This can be very useful and allows for neatly styled printouts that hide non-essential parts of the page and only contain the main content. It’s a great concept.
To achive this, create a separate stylesheet say, print.css, and put your classes there in the css file. Apply the classes to the fields you want to customise while printing and then add the following in your page's head section.
<link rel="Stylesheet" href="../Style/print.css" media="print" type="text/css" />
Note: This will only apply when someone is printing the page.
Give it a try!!
Revision number 2, Sunday, September 04, 2011 4:50:08 PM by mbanavige
You must Login to comment.
|
Sun, Sep 18, 2011 4:37 AM
by morefays
|
you can also used CSS in Div and print the DIV directly to printer.
|
New
Fri, Jul 18, 2008 7:06 AM
by
|
AJAX and CSS
Cascading Style Sheets (CSS) is one of the core technologies in the AJAX architecture apart from XML, DOM, JSON and so forth. Here are some links on using CSS with AJAX: Create flickr-like editing fields using AJAX and CSS/ 26 best ways to implement ajax css
|
Revision #6
Wed, May 30, 2012 5:33 PM
by
|
Great CSS Tutorials
Great CSS Tutorials When I started web development I was a great pain to manage styles using CSS. But later on as I explored the CSS, I found the power and flexibility of using CSS. Here I am listing some of CSS tutorials which will be usefull for every web
|
Revision #2
Sat, Apr 9, 2011 4:10 PM
by
|
Adding CSS 3.0 support to Visual Studio 2010
Many of us want to use CSS 3.0. This feature is promised in Visual Studio 2010 however if you open any given CSS file, the option does not appear in the dropdown. So I decided to write this WIKI to help. 1. Open this link to download the CSS 3.0 installer
|
Revision #4
Fri, May 22, 2009 8:46 PM
by
|
CSS Friendly Pages
From CodePlex: "The CSS Friendly Control Adapters kit (for ASP.Net 2.0) provides pre-built control adapters that you can easily use to generate CSS-friendly markup from some of the more commonly used ASP.NET controls. " Start by reading the original
|