Defining a Style Sheet for Print


/ Published in: HTML
Save to your folder(s)

As with screen style sheets, you use the element to define the print style sheet your Web page should use:


The only difference between this link element and the link to your screen style sheet is the attribute:
media="print"
Most style sheets are written for the screen, so the media can be left off, or written as:
media="screen"


Copy this code and paste it in your HTML
  1. <link rel="stylesheet" type="text/css" href="print.css" media="print" />

URL: http://webdesign.about.com/cs/css/a/aa042103a.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.