Skip to main content

SuperchargeInspect · Free

CSS Spacing Inspector: Read and Copy the Box Model

A CSS spacing inspector that shows an element's box model, padding and margin on each side, gap, border radius and display, and copies each value on click.

Updated

Supreme Bold · 700

Ag

  • Ink
  • Amber
  • Paper
Aa Bb Cc 012392 / 1.0 / −0.028em
or press AltShiftE

Opens the real panel on this page. You can point at anything here.

A layout looks off and the fix starts with one element. The padding inside a button is too tight, or the margin around a card is too wide, and you want the number without digging through DevTools. A CSS spacing inspector skips that dig. You point at the element and the Box section shows the box model with every side, value by value. SuperchargeInspect reads that one element for you.

What the CSS Spacing Inspector Shows

The Box section draws the element box model as layers, from outermost to innermost: margin, then border, then padding, then content. Each side of the element carries its own value, so top, right, bottom and left are read out separately.

The center shows the content box as a width by height in CSS pixels, the space the element’s text and children sit in. The panel shows the content size in whole numbers.

Beside the diagram, the section lists three more values on their own: Gap, Radius and Display. Radius is the border-radius value. Each one reads on its own and copies on its own when you click it.

Reading the Element Box Model

Each row below names a part of the element box model and what to adjust when the space looks off.

ValueWhat it tells you
marginThe space outside the border, on each side
borderThe line around the padding, with its width on each side
paddingThe space between the border and the content, on each side
ContentThe content width by height, in CSS px
gapThe space between the element’s children
RadiusThe corner rounding, from border-radius
displayThe layout mode, such as block, flex or grid

Read them from the outside in, the same order the diagram draws them.

Copying Spacing Values

Every value in the Box section is a button. Click the top padding and that one value copies. Click gap and just the gap copies. You copy a single value at a time, so you paste only what you are changing.

For the whole set, open the More ways to copy menu and choose Copy text only. It includes the full list of observed styles, with px values for the padding and margin in top, right, bottom, left order, then the gap, the border-radius and the display.

What It Does Not Measure

It reads one element at a time, and only one. There is no ruler, no guide, no grid or flex overlay, and no measurement of the distance between two elements. To compare two elements, lock the first, note its padding and margin, then move to the other with the arrow keys and read its values.

Keyboard Control and Privacy

Start with Alt+Shift+E, then move between elements with the arrow keys. Press Ctrl+Up and Ctrl+Down to step to the parent or the child, Option+Up and Option+Down on macOS. Stepping to the parent shows which wrapper adds the space. Press Enter to lock the element and Esc to go back to picking or close the panel.

The whole thing runs locally. It makes no network calls and there is no account, so nothing you inspect is sent anywhere.

Read fonts and colors too with the CSS inspector.

Frequently Asked Questions

How do I inspect the padding and margin of an element?
Press Alt+Shift+E to start, then point at the element or move to it with the arrow keys. The Box section shows the padding and margin on each of the four sides, with the value drawn on every side of the box model diagram. Click the value you want to copy just that one.
What does the box model diagram show?
The diagram in the Box section draws the CSS box model as layers: margin, border, padding and content, from outermost to innermost. Each side of the element carries its own value. The center shows the content width and height in CSS pixels. The gap, the border radius and the display are listed as separate values next to the diagram.
Are the values shown in pixels?
The values are measured in CSS pixels. The panel strips the px unit so a value of 16 px reads as just 16. Copy text only and Copy reference keep the raw px values, with padding and margin in top, right, bottom, left order, alongside the gap, the radius and the display.
Can it measure the distance between two elements?
No. It reads one element at a time, so there is no ruler, no guide and no measurement between two elements. To compare two elements, inspect each one on its own and compare the padding and margin you read for each.
Does it send page data anywhere?
No. The extension runs locally and makes no network calls. There is no account and no analytics, and nothing you inspect is sent to a server. It remembers your last picked element on each page until you close the browser.

Related Features