# size attribute

Type: | paper size
Inherited: | no
Used By: | pagenumber, totalpages, All block elements
Default: | For BODY, if the locale is en_US or en_CA, "letter". Otherwise it's "A4". For other elements, there is no default value. For PAGENUMBER and TOTALPAGES, this value detemines the number of digits to allow for, and defaults to 3.
See: | height id width

For most elements, allows the width and height of an element (usually a page, but theoretically any block) to be set to a standard value. For example, the following two lines are equivalent:
`<body width="210mm" height="297mm">`
`<body size="A4">`
Valid values are:

- ISO "A" range of paper sizes: `4A0, 2A0, A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10`
- ISO "B" range of paper sizes: `B0, B1, B2, B3, B4, B5, B6, B7, B8, B9, B10`
- ISO "C" range of paper sizes: `C0, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10`
- American paper sizes: `letter, legal, executive, ledger`
- Any of the above sizes in landscape, e.g. `letter-landscape`, `A4-landscape`
- ISO envelope sizes: `DL` (110 x 220mm), `E4` (280 x 400mm)
- Standard OHP sizes: `OHP-A` (250 x 250mm), `OHP-B` (285 x 285mm)
- Standard id card sizes: `id-1` (3.37 x 2.125 inches), `id-2` (105 x 74mm), `id-3` (125 x 88mm)

For any one of these sizes, the suffix "-landscape" can be attached to reverse the width and height components.
For the pagenumber and totalpages elements, this attribute sets the number of digits to allow space for in the paragraph. This is only really required when the paragraph is right aligned. The default is "3", to allow space for three digits in the page number.

Set the body of the document to 297mm wide by 210mm high

    body { size:A4-landscape; }

For documents of less than ten pages, the PAGENUMBERTAG and TOTALPAGES elements can have their size set like so:

    Page <pagenumber size="1"/> of <totalpages size="1"/>