Is there a way to tell / set how many millimeters an element has that works on different devices?
For example, I would like to create a white window 100 x 100 mm in size with a squared 10 x 10 mm square in the middle, which will have such dimensions on a desktop, tablet, print, ...
I do not mind using the latest browser, but it should use HTML / JS / CSS.
PS: Linked: is there a way to say how many millimeters of the screen?
Edit
In other words, the problem is that using CSS units such as pt, mm, cm, ... does not work, as browser developers decided to hardcode 96 DPI into agents, according to. Is there anything that can be done to get real, physical, measurements online?
source share