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:
Most style sheets are written for the screen, so the media can be left off, or written as:

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


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.