Skip to content

Instantly share code, notes, and snippets.

@sshadmand
Created Aug 16, 2015
Embed
What would you like to do?
Add borders to all your elements when testing out layout element sizing.
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