This is a cross browser method:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="screen.css" type="text/css" media="screen">
<link rel="stylesheet" href="print.css" type="text/css" media="print">
</head>
<body>
Hi
</body>
</html>
It uses two separate stylesheets, one for the screen and one for the printer. Here are examples of the stylesheets:
screen.css
Code:
body {
font:90% serif;
color:red;
}
print.css
Code:
body {
font:bold 200% sans-serif;
}
Bookmarks