Forum How do I...?

set @page size and @top-center

rsands
I am trying to do the following

@page { size: A4;
@top-center { }
}

But i cannot get it to set page size and set @top-center header. Any idea where I am going wrong?

I tried setting @page { size: A4 } @page { @top-center { } } - but that only set the size and not the header
mikeday
Can you try this simple document:
<html>
<head>
<style>
@page {
    size: A4;
    @top-center { content: "Header" }
}
</style>
</head>
<body>
<h1>Content</h1>
</body>
</html>
rsands
Sorry my fault. I was setting size: twice. The code works fine