This content originally appeared on DEV Community and was authored by Steven Lei
Hello, I am Steven. I just wrote a JavaScript utility named SpacingJS.
As a frontend web developer, it is important to grasp the spacing between elements on a webpage. The DevTool can check the dimension, padding, margin, styles and more of an element, but it seems like it cannot measure the distance between elements like Sketch/Figma. So I have written this utility:
You can experience on the website:
https://spacingjs.com
Besides including the script with a <script>
tag to your website, a Chrome Extension is available on the Chrome Web Store.
The project is open-source and available here: https://github.com/stevenlei/spacingjs. Would you please star it if you like it?:)
Thank you!
This content originally appeared on DEV Community and was authored by Steven Lei

Steven Lei | Sciencx (2021-11-16T04:05:49+00:00) A JavaScript Utility for Measuring Spacing. Retrieved from https://www.scien.cx/2021/11/16/a-javascript-utility-for-measuring-spacing/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.