I have an SVG image which I'd like to display on screen at exactly 15×15cm
, regardless of screen resolution, pixel density, etc.
<img src="foo.svg" class="foo">
.foo {
width: 15cm;
height: 15cm;
}
This causes the image to render at approximately 15×15cm
, but there is quite a bit of deviation, particularly on tablet devices (my iPad rendered it at 8.3×8.3cm
).
I get that cm
measurements are intended mainly for print, but is there a way to reliably replicate them on screen?