hai i have doing a billing project, in thi project somdetail print in a 4inch X 2.5inch size paper, how to write the print css please guide me,
You mean how to do the page better for printing? Just when you're linking your css style to html page write <link media="print">
Beware that both IE and FF by default will try to apply your screen layouts and their own garbage styling to anything you print by default. This can annoy the ever living **** out of you when trying to actually use CSS to control print. You have to go into the browser preferences and turn that **** off, or test, test, and test some more to code around it. Just another reason I prefer using Opera, which actually obeys what you tell it to do for print... Here's hoping they don't screw that up with the change-over to Google Blink.
Add below line on above head section. <link rel="stylesheet" type="text/css" href="print.css" media="print"> The print.css style sheet looks like this: body { color : #000000; background : #ffffff; font-family : "Times New Roman", Times, serif; font-size : 12pt; } a { text-decoration : underline; color : #0000ff; } #navigation, #advertising, #other { display : none; }