should i use pt or px when specifying border-width in css for media print?
i basically just want hairlines
should i use pt or px when specifying border-width in css for media print?
i basically just want hairlines
For print you should use pt, as it's an absolute unit not based on the resolution of the media.
In general you should use points or em's in place of pixels when possible. The reason is that points and ems both scale with the users' resolution or zoom setting where pixels do not. On many larger, high definition or wide screen monitors individual pixels are too small to be reliably useful for placement.
1px
to 1/600″, and extremely-high-def monitors also scale. The page ‘zoom’ feature by design zooms pixels as well as every other unit. Also pt
is just as unresponsive to text size settings as px
; it should only ever be used for print. –
Eggers © 2022 - 2024 — McMap. All rights reserved.
px
units and other crazy stuff. You may find that it's simpler and better to be lazy like everyone else. For example, with Chrome, lines set withpt
widths smaller than.8pt
will not show up on screen or printed. However, on IE, they will show up as1px
on screen, and the correct size when printed (insofar as the printer DPI allows). – Dolly