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 46 people (30%) answered Yes
Recently 2 of 10 people (20%) 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?

Apr 5th, 2008 19:08
ha mo, 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
http://www.businessian.com
http://www.computerstan.com
http://www.financestan.com
http://www.healthstan.com
http://www.internetstan.com
http://www.moneyenews.com
http://www.technologystan.com
http://www.zobab.com
http://www.healthinhealth.com