Skip to content

Ruler

Exact distances between two elements, guides and grid.

Try it yourself? The course has a Ruler module with 3 lessons.

Take the module

What it's for

The Ruler (Spacing Inspector) lets designers and developers measure the exact pixel distance and spacing between any two elements on a page. This makes it easy to check whether margins, paddings and white space match the design system (for example 8px grid alignment).

What it can do

  • Three tabs with icon and label (Distance, Guides, Grid) and a scaling work area: Bundles three layout tools without outer scrolling:
    1. Visual Ruler & Pythagoras (A ↔ B):
      • Live on the page (& mobile iframe): Draws an adaptive SVG measuring triangle between element A and B, with a horizontal X ruler at the bottom (with calipers and tick marks), a vertical Y ruler, a right-angle symbol (∟) and the dashed diagonal Pythagoras line (√(x² + y²)). For short distances between elements, the tool places the small A/B badges on the outside and combines the measurements in a single floating callout outside the gap so nothing overlaps.
      • Theme-aware Blueprint canvas in the side panel: Shows a clear, light blueprint view in Light Mode (and automatically switches to dark blue in Dark Mode) with an X ruler along the bottom, a Y ruler on the left, the diagonal Pythagoras line and three clickable copy cards (↔ X axis, ↕ Y axis, ⟋ Diagonal).
    2. Guides & Outlines: Clear icon tiles with ON/OFF status: Guides works as a real toggle for the crosshair (including a live counter badge of placed lines), next to DOM Outlines and a clear Clear guides button.
    3. Column Grid: Quick presets (12 · 1280, 8 · 1024, 4 · 100%) and 2×2 number fields for columns, max width, gutter and margin.
  • Clear & Restart: Pressing Escape, clicking the clear button or switching tools clears the current measurement selection and removes temporary measurement outlines from the screen.

Review websites, right on the page.

© 2026 Reviewr