Re: Border and padding in paged media

2009/3/30 Brad Kemper <>:
> On Mon, Mar 30, 2009 at 2:20 PM, Giuseppe Bilotta
> <> wrote:
>> Hello all,
>> I read in the paged media description
>> that border and padding
>> properties do not apply to pages, and I was wondering what would be
>> the reason for it. I can find a number of possible applications;
>> indeed, I came across this limitation because I was looking for a way
>> to draw a rather thickish border on the left and bottom margins of the
>> page in projection mode (I'm using Opera). So the first question is:
>> why?
> CSS 2.1 does not have that restriction:

It has, in section 13.2.1: "In CSS 2.1, only the margin properties
('margin-top', 'margin-right', 'margin-bottom', 'margin-left', and
'margin') apply within the page context" and "The declarations in an
@page rule are said to be in the page context", from which I infer:
only the margin properties are allowed in @page

On the other side, CSS3 allows both border and padding:


Received on Tuesday, 31 March 2009 11:56:25 UTC