Skip to content

Instantly share code, notes, and snippets.

@sshadmand
Created August 16, 2015 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sshadmand/fb4ec13365622d5c8870 to your computer and use it in GitHub Desktop.
Save sshadmand/fb4ec13365622d5c8870 to your computer and use it in GitHub Desktop.
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