|
rubyaim -> RE: css content in the stylesheet? (1/9/2007 21:00:51)
|
mtfm, do you mean that if the pages are edited to include the printed date, the modified date will change, and not be a true reflection of the content modification? Like Womble, I can't see how you would do this without using script, but it's an interesting question. A workaround might be to add a note using :after to warn users to check the modification date - see code below (view it with FF or Opera). AFAIK this will not work in IE, so it is probably not very useful at all in the real world, but it is fun to play with [:D]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<title>Body after print test</title>
<style type="text/css">
@media print {
body:after {
content: "Please note the modified date of this document.";
display: block;
margin-top: 2em;
text-align: right;
font-weight: bold;
}
}
</style>
</head>
<body>
<h1>Print Preview this page.</h1>
<p>This is a test. Look to the lower right of this paragraph on print preview.</p>
</body>
</html>
FWIW, I think the default printer setting on browsers will include the date printed in the footer, so the print date will show unless a user has removed this. Most users don't change these settings.
|
|
|
|