The fastest way to get the info for any element is by using Peek.
Using Polypane Peek
Press and hold
alt (on linux and windows) or
option (on mac) and hover over an element to show the element dimensions and other quick info in a tooltip:
From top to bottom:
- Element name, along with id and classes
- Dimensions and aspect ratio, followed by the color contrast and its WCAG rating
- Color, font and spacing info like border, margin and padding (depending on what applies to the element.)
- Accessibility info like role, the accessible name and whether an element is focusable.
Depending on the type of element it also shows relevant info for that type of element, like
alt text for an image,
href for a link and
action for a form.
This feature is especially useful to quickly find out which color or font is used, or how much padding or margin an element has on any side. Click on the highlighted element and it will open in the Element inspector where you can inspect or edit it further.
You can also inspect elements by clicking the Inspect button in the address bar, pressing cmd/ctrl + Shift + C or clicking the inspect button in the Elements panel.
Inspecting elements with
To inspect elements that have
pointer-events: none applied, press
shift during inspection.
Using Peek with the Chromium Devtools
You can switch between using Polypane's inspect tooltip or the Chromium devtools inspect tooltip by right-clicking the inspect button in the header and selecting "Inspect Element (in devtools)".
When inspecting an element the contents, padding, border and margins are all visualized on top of the element.
- Margin: rgb(246 178 107)
- Border: rgb(255 229 153)
- Padding: rgb(147 196 125)
- Content: rgb(111 168 220)
The colors are shown in the tooltip in front of each margin, padding and border declaration as a reference, and they follow the colors used in the box model view in the elements panel.
Have a question about Polypane?
Contact us any time though chat, Slack or our contact form:Contact Support
Build your next project with Polypane
- Use all features on all plans
- On Mac, Window and Linux
- 14-day free trial – no credit card needed