Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7788355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:58:23+00:00 2026-06-01T20:58:23+00:00

So, here is my first question on Stack Overflow. It sounds perhaps kind of

  • 0

So, here is my first question on Stack Overflow. It sounds perhaps kind of silly, but I’m wondering how accurate the Absolute Length Units (in, cm, mm, pt, pc) are.

I use now since years pixel for the height, margins, padding, indents, and so on, of elements. The problem I somehow have is that pixel are only more or less accurate. The CSS specification recommends a “reference pixel” of roughly 90ppi. So far so good. But every screen has different ppi values. Some going down to 72 other go far higher then the 90.

This fact shows me that using pixels is not very accurate and I’m thinking about switching over to Absolute Units. It sounds silly, but I want to know if a mm for example has exactly the same size on every screen, or are there also differences from screen to screen, how big a mm is?

This question is not a joke. I can’t find anything about this topic and want to know if I can optimize my layout in the high end when using another Unit than pixel.

Thank you in advance for sharing your knowledge.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T20:58:25+00:00Added an answer on June 1, 2026 at 8:58 pm

    Physical units are useless, (broadly) because it’s impossible to programatically determine the DPI of a screen.

    I’ve got a 23″ 1080p monitor, which gives me a DPI of 95. But the only thing the browser knows about is the viewport size, and I can change that at any time, by resizing the browser window or changing the monitor resolution. You could assume that all 1080p panels have a 23 inch diagonal, but Newegg tells me that you can get a 1080p monitor in any size between 21.5″ and 27″. This doesn’t even count HDTVs which come in a wide, wide range of sizes, all at the exact same display resolution.

    The Windows API exposes monitor DPI, except it lies, and you can’t trust the numbers it gives you.

    So, basically, you can only use physical units when you control the display device, like a printer. For the web, it’s a waste of time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new here and hope my first question meets stack overflow's requirements. I
This is my first question here on stack overflow. i need help on a
this is my first question here at Stack Overflow. I've been looking for a
This is probably the dumbest question ever here on stack Overflow. But I am
This is my first question here. I have been searching Stack Overflow and other
This is the first time i'm asking a question here at stack overflow so
this is my first question on stack overflow, so be gentle. Let me first
This is probably the worst question I have ever posted on Stack Overflow but
Welcome to my first question on stack overflow. I've looked around, and I haven't
I’m honouring stack overflow with my first ever on line web building question... My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.