How do I declare that a DIV should be displayed in top-left corner of every page and not in its relative position.
I have a div like:
<div id=header>Document</div>
and I would like to display it on every page in top left corner using css like:
@page {
size: 8.5in 11in;
margin: 0.25in;
border: thin solid black;
padding: 1em;
@top-left {
content: ???? ;
}
}
Thank you.
Doesn’t
work? See Printing Headers. Also, have a look at the W3C specification of position: fixed.
EDIT: if I read the CSS 3 specs concerning Margin Boxes well enough, together with the CSS 2.1 specs about the
contentproperty, I don’t think you can embed a<div>from your page into the contents of a Margin Box, alas.