← Назад до функцій
Free

Виміряти відстань

Виміряти відстань дозволяє клікнути на два елементи і миттєво побачити точну відстань між ними.

Checking the spacing between two elements in browser DevTools requires hovering each element separately, reading margin/padding values, and doing mental math to calculate the actual visual distance. Measure Distance eliminates this entirely. Click Element A, click Element B, and the exact pixel distances appear immediately — X (horizontal), Y (vertical), and diagonal — displayed as labeled lines connecting the two elements directly on the page. The tool measures from element edges (bounding boxes), so the values represent the actual visual gap between elements as the user sees them. This is different from reading margin/padding values, which don't account for the cumulative effect of multiple spacing properties. Each selected element is highlighted with a colored border and shows its own dimensions (width × height), so you can see both the element sizes and the spacing between them in one view.

Live-перегляд
example.com/layout Measure Mode: ON
Logo
Element A
CTA Button
Element B
X: 248px
Y: 140px
Diagonal: 285px
A: Logo (120×48) B: CTA Button (140×48) | X: 248px Y: 140px D: 285px
Основні функції

Two-Click Measurement

Click the first element (highlighted with a blue border), then click the second element (highlighted with a green border). The distances between their bounding boxes are calculated and displayed instantly. No dragging, no manual input — just two clicks.

Three-Direction Values

See the horizontal distance (X), vertical distance (Y), and diagonal distance simultaneously — each displayed with its own color-coded measurement line and label. X in amber, Y in red, diagonal in purple.

Visual Connection Lines

Dashed measurement lines connect the two selected elements directly on the page, with distance labels positioned at each line's midpoint. The visual representation makes it immediately clear what's being measured.

Element Dimension Labels

Each selected element shows its own width × height dimensions in a small label. This lets you see both the element sizes and the spacing between them in the same view — without switching tools.

Quick Re-Measure

Click a new pair of elements to instantly update the measurements. No need to deactivate and reactivate the tool. The previous measurement lines are replaced with new ones for the new element pair.

Info Bar Summary

A persistent info bar at the bottom of the viewport shows a compact summary: both elements' names and dimensions, plus all three distance values (X, Y, diagonal). Copy-friendly for pasting into bug reports or design feedback.

Поширені сценарії використання

Verifying Design Spacing Specifications

The mockup says the button should be 24px below the heading. Click the heading, click the button, and confirm the Y distance is exactly 24px. Catches subtle spacing discrepancies that are invisible to the eye but specified in design tokens.

Checking Consistent Element Gaps

Measure the distance between Card 1 and Card 2, then between Card 2 and Card 3. If the gaps aren't identical, you've found an inconsistency — likely caused by differing margins or a flexbox gap issue.

Responsive Spacing Verification

Measure element distances at desktop width, then resize the browser and measure again at mobile width. Verify that spacing scales correctly across breakpoints and that responsive margin/padding adjustments are working as designed.

Bug Report Documentation

Include precise measurements in your bug reports: "The gap between the nav and hero is 47px, should be 32px per the design spec." The info bar values can be copied directly into Jira tickets or GitHub issues.

Alignment Checking

Click two elements that should be horizontally aligned. If the Y distance is 0px, they're perfectly aligned. Any non-zero Y value indicates a vertical misalignment — the exact number tells you how many pixels off it is.

Як користуватися
1

Activate Measure Distance

Open the DevSuite Pro floating dock and click the Measure Distance icon. The cursor changes to a crosshair, indicating you can select the first element.

2

Click the First Element

Click any element on the page. It's highlighted with a blue border and labeled "Element A" with its dimensions (width × height in pixels).

3

Click the Second Element

Click a second element. It's highlighted with a green border and labeled "Element B." Measurement lines immediately appear connecting the two elements.

4

Read the Distances

Three measurement lines appear: horizontal (X) in amber, vertical (Y) in red, and diagonal in purple. Each line has a label showing the pixel distance. The info bar at the bottom summarizes all values.

5

Re-Measure or Deactivate

Click another pair of elements to measure a new distance instantly. Click the Measure Distance icon in the dock to deactivate the tool when done.

Готові спробувати? Виміряти відстань?

Встановіть DevSuite Pro безкоштовно та отримайте понад 39 інструментів розробника для вашого браузера.

Додати в Chrome Додати в Edge Додати в FireFox