views:

32

answers:

3

should i use pt or px when specifying border-width in css for media print?

i basically just want hairlines

A: 

for hairlines use just px

Salil
A: 

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.

g.d.d.c
i'm talking about printing on paper, no screen/pixels involved. that's why i asked this question
knittl
Do you know what kind of resolution your printer is going to be using? You can certainly use pixels if you're going to print media, but a 600dpi Printer will produce different output than a 300dpi printer with a single pixel border.
g.d.d.c
Pixels may scale; they are not always exactly one physical pixel—see CSS 2.1 section 4.3.2. A 600dpi printer will not convert `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.
bobince
A: 

For print you should use pt, as it's an absolute unit not based on the resolution of the media.

Guffa