How big is 1px? | Dan Hollick
typefully.com · 327 words · saved by 1 readers
How big is 1px? Short answer: Almost never the size of a device pixel. Long answer: It depends how far away it is👇
How big is 1px? Short answer: Almost never the size of a device pixel. Long answer: It depends how far away it is👇 There is actually a very simple answer to this question. According to the CSS spec: 1px = 1/96th of an inch (0.26mm) Boom. Done. Although, there's a problem with this reference size. Consider a new MacBook where each device pixel is ~0.1mm. 1px would be equal 2.6 device pixels. But you can't have .6 of a pixel - it needs to be an integer. To get around this, CSS lets each browser set the size of 1px to a size that suits the device. This is called 'anchoring' because…
saved by
related reading
- Departure Monodeparturemono.com
- Cascading Style Sheets, designing for the Web – Chapter 3: The amazing em unit and other best practicesw3.org
- Window: devicePixelRatio property - Web APIs | MDNdeveloper.mozilla.org
- font-size CSS property - CSS | MDNdeveloper.mozilla.org
- Zoom levels - OpenStreetMap Wikiwiki.openstreetmap.org
- <meta name="viewport"> HTML attribute value - HTML | MDNdeveloper.mozilla.org
- Online Scale Converter Tool - Scale Modelers Worldscalemodelersworld.com
- Typescale - Create stunning typography, generate CSS, and find inspiration.typescale.com
- Khoảng cách từ mắt đến màn hình máy tính để không mỏi mắt? Xem để biết - Thegioididong.comthegioididong.com
- Typography in ten minutes | Butterick’s Practical Typographypracticaltypography.com
- Go smol or go home | Harm de Vriesharmdevries.com
- MEK.txtmek.gallery