faqts : Computers : Programming : Languages : JavaScript

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

14 of 45 people (31%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How can I print the full contents of a scrollable block of text? Can I do it in a print media specific style sheet?

May 11th, 2001 08:29
jsWalter, Laurie Young,


You create 2 CCS files...
  1) for screen display
  2) for printing
<head>
	<title>Displaying XML Data with XSL and the DOM</title>
	<!-- this is the XSL and CSS files used to define
		 the display structure and style characteristics -->
	<!-- style definitions for screen -->
	<link href='./styles/myStyles.css'
	      rel='stylesheet'
	      type='text/css'>
	<!-- style definitions for print -->
	<link href='./styles/myStylesPrint.css'
	      rel='stylesheet'
	      type='text/css'
	      media='print'>
</head>
Walter