Hmm... Den er lidt tricky. Der er kun 11 mm margen i toppen som default...
Prøv følgende kode... Der er indsat en div, som førsøger at kontrollere printer margens. Antager at du i "Filer - Sideopsætning : Marginer & Sidehoved/Sidefod" har sat alle maginer til 0 og samtlige sidehoveder & sidefødder til "--blank--".
Viker nedenforstående ikke, så fjern margen definitionerne på body og prøv igen. Denne kan konflikte med DIV'ens magin...
"In conclusion, if you want CSS-controlled print headers and footers, you'll need to wait until browsers start to offer experimental support for the CSS3 Paged Media Candidate Recommendation. It could be several years before IE offers support for this CSS3 module, if it ever does."
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1" />
<title>Udskriv</title>
<style type="text/css" media="print">
html {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding: 0px 0px 0px 0px;
}
div {
display: block;
position: fixed; top: 0; left: 0; width: 100%; height: 2em;
}
body {
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
padding: 0px 0px 0px 0px;
font-family: Courier; font-size: 12px;
}
</style>
</head>
<body onLoad="window.print();">
<!-- Content Start -->
<div>noget jeg gerne vil udskrive...</div>
<!-- Content End -->
</body>
</html>