Specify the border to the region
In CSS, the @page rule allows for targeting of specific regions of a page (e.g., @top-left, @bottom-right-corner). Such rules also allow you to assign content, borders, text alignment, and background colors to these regions for all instances in your document.