Last active
July 6, 2021 19:54
-
-
Save mattfwood/38749359b6c5fbd483cee9c37867e03f to your computer and use it in GitHub Desktop.
outline all elements in red to debug CSS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Run this command in your browser's console to give all page elements a red outline | |
| ** to help with debugging layout issues | |
| */ | |
| document.querySelectorAll('*').forEach(element => element.style.outline = '1px solid red') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment