Add borders to all your elements when testing out layout element sizing.
This file contains 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