You open a page you built, or a page someone handed you, and the spacing looks wrong. The gap under the heading feels wider than the design, the cards do not line up with the margins, and eyeballing it settles nothing. What you want is a number: how many pixels sit between those two elements.
There is a trap here, and it is worth naming before anything else. The free Screen Ruler and Pixel Measure on Ovatly cannot float over your live page and read it. It measures boxes you draw on its own measuring area, nothing else. Used honestly, though, it still gets you exact pixel numbers: take a screenshot at 100 percent zoom, work from the image's own pixel dimensions, and draw boxes on the measuring area where a precise reading is needed.
Contents
- Quick answer
- What spacing is, in pixels
- Why the ruler cannot sit on top of your page
- How to check spacing, step by step
- Pixels are exact, millimetres are estimates
- Worked example: one gap, two very different millimetre readings
- Limitations and honest tradeoffs
- Common mistakes
- FAQs
- Conclusion
- References
Quick answer
Set your browser zoom to exactly 100 percent and take a screenshot of the section you want to check. The screenshot's pixels now match the page's layout pixels, so a gap in the image is the gap on the page. Measure each space in pixels, using the image's dimensions and, for a precise box reading, the Screen Ruler and Pixel Measure: drag a box and read its width, height and diagonal. Report spacing in pixels, because pixels are exact. Treat any millimetre figure as an estimate until you have calibrated with a bank card.
What spacing is, in pixels
Spacing between elements is the empty distance between their edges: the gap below a heading, the gutter between two cards, the padding inside a box. On a screen, that distance is counted in pixels. When someone says a design uses a 24 px gap, they mean 24 pixels of empty space between one element's edge and the next.
Pixels are the honest unit for this job because they are countable and exact. A box drawn 300 px wide is 300 px wide: no rounding, no assumptions about the screen showing it. Physical units are a different story. How large 300 px looks in millimetres depends on how densely the screen packs its pixels, which is why millimetre readings need calibration before they can be trusted, a point the worked example below makes with real numbers.
Why the ruler cannot sit on top of your page
It is natural to expect a screen ruler to behave like a transparent overlay: drag it across the live page, read the gap, done. This tool does not do that. The Screen Ruler and Pixel Measure works on its own page, in its own measuring area. It cannot see your page, another browser tab, or any other app or window, and it never inspects a page's code, CSS or DOM to find the values a stylesheet declares.
That limit shapes the whole method. The page itself is captured as an image, where its pixels can be counted, and the ruler supplies precise box measurements on its canvas. For the declared value inside a stylesheet, a browser's developer tools are the right instrument.
How to check spacing, step by step
- Set the browser zoom to 100 percent and check the indicator before capturing: a screenshot taken at 125 percent inflates every distance in it.
- Take a screenshot of the section you are checking, at full size, and do not shrink or enlarge it afterwards: rescaling rewrites its pixel dimensions.
- Locate the two edges of the gap in the screenshot and count the pixels between them, using the image's own pixel dimensions.
- For a precise box reading, open the Screen Ruler and Pixel Measure and drag a box of the same extent on the measuring area. The tool reports width, height and diagonal in pixels.
- Write the spacing down in pixels. If a physical size is genuinely needed, calibrate first (next section) and label the millimetre figure accordingly.
Pixels are exact, millimetres are estimates
The ruler also reports physical sizes, and this is where careless numbers are born. Without calibration, the conversion assumes the standard CSS reference of 96 ppi, about 3.78 px per mm. On a real screen that assumption is usually wrong, so an uncalibrated millimetre reading is a rough estimate and should be labelled as one.
Calibration replaces the assumption with your screen's actual density. Hold a bank card against the screen, move the slider until the outline matches the card's width, and press Calibrate. The built-in calculation assumes the standard bank card width of 85.60 mm, so matching the outline tells the tool how many of your screen's pixels make a millimetre. From then on, millimetre readings describe your display, until the browser zoom or OS scaling changes the density and you recalibrate.
Worked example: one gap, two very different millimetre readings
Suppose the empty band between a card's edge and the next card measures 300 px across in your screenshot, and you draw a matching 300 px box on the measuring area to read its physical size. After calibration on a screen that packs 5 px into a millimetre, the same box converts very differently:
Box width: 300 px
Uncalibrated: 300 / 3.78 = about 79.4 mm (estimate only)
Calibrated at 5 px per mm: 300 / 5 = 60 mm (true size)
Gap between the two readings: about 19.4 mm
The pixel figure never moved: the gap is 300 px on both lines. What changed is the trustworthiness of the physical conversion. Anyone quoting that gap as about 79 mm from an uncalibrated reading would be overstating it by nearly a third, which is why spacing reports belong in pixels first.
Limitations and honest tradeoffs
The screenshot method measures what is rendered, not what was intended. If the page was built with a 24 px gap but renders at 23 px because of rounding elsewhere, the screenshot shows 23 px. It cannot tell you which value the stylesheet declares.
Everything also hinges on the capture. Zoom other than 100 percent, or an image viewer that rescales the screenshot, silently corrupts every measurement taken from it. The ruler's readings stop at its canvas, so very large distances are read from the image's dimensions rather than from one giant box. Finally, millimetre figures, even calibrated ones, describe one specific screen. The same 300 px gap is a different physical size on a denser display.
Common mistakes
- Screenshotting at whatever zoom the browser happens to be on. At 125 percent every gap is inflated, invisibly.
- Quoting millimetres from an uncalibrated ruler. Those figures rest on the 96 ppi assumption, not on your screen.
- Rescaling the screenshot before measuring. It rewrites the image's pixel dimensions and every distance in it.
- Expecting the tool to read the page's code. It measures drawn boxes only; declared stylesheet values are a developer-tools job.
- Reporting a physical size without naming the screen. A calibrated reading is true for that display only.
FAQs
Can the ruler measure a live web page directly? No. The Screen Ruler measures only boxes you draw on its own measuring area; it cannot see or overlay a live page, another app or another window. The honest route is a screenshot taken at 100 percent zoom, checked through the image's own pixel dimensions.
Why does the zoom level matter for a screenshot? A screenshot captures what the screen shows. At 100 percent zoom the page's layout pixels map cleanly to image pixels, so distances in the image match the layout. At 125 percent everything is rendered larger, and gaps measured from that image come out inflated.
Are the millimetre readings exact? No. Pixels are exact, but millimetres are estimates until you calibrate. Uncalibrated, the tool assumes the 96 ppi CSS reference (about 3.78 px per mm). After bank-card calibration it converts using your screen's real pixel density.
How does bank-card calibration work? Hold a bank card against the on-screen outline, move the slider until it matches the card's width, and press Calibrate. The built-in calculation assumes the standard bank card width of 85.60 mm, and from that match it works out how many pixels your screen fits into a millimetre.
Does the tool read a page's CSS or DOM to find spacing? No. It never inspects code. It measures boxes you draw, and spacing work is done from a screenshot's pixel dimensions plus boxes drawn on the measuring area. For the declared values in the stylesheet itself, a browser's developer tools are the right instrument.
Conclusion
Spacing checks are simple once the units are honest: capture at 100 percent zoom, count in pixels, and let millimetres wait for calibration. The Screen Ruler and Pixel Measure gives you exact box readings on its measuring area, and its bank-card calibration turns physical sizes from guesses into measurements. If your readings keep coming out wrong, our guide to pixel measurement mistakes covers the errors that ruin them, starting with forgotten zoom. For more guides in this series, see our Productivity Tools guides.
References
- MDN Web Docs, on the CSS pixel and the reference pixel: https://developer.mozilla.org/en-US/docs/Glossary/CSS_pixel
- MDN Web Docs, on devicePixelRatio and how displays map CSS pixels to physical pixels: https://developer.mozilla.org/en-US/docs/Web/API/Window/devicePixelRatio