Created
August 16, 2015 02:11
-
-
Save sshadmand/fb4ec13365622d5c8870 to your computer and use it in GitHub Desktop.
Add borders to all your elements when testing out layout element sizing.
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
function borderizer(){ | |
var all = document.querySelectorAll("*"); | |
var rgb = [0, 0, 0]; | |
for (var i=0, max=all.length; i < max; i++) { | |
all[i].style.border = "solid"; | |
all[i].style.borderWidth = "1px"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment