Skip to content

Instantly share code, notes, and snippets.

@hiun
Created June 18, 2014 05:37
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 hiun/72fa30368dedc2dfe4c4 to your computer and use it in GitHub Desktop.
Save hiun/72fa30368dedc2dfe4c4 to your computer and use it in GitHub Desktop.
Styling every `p` element with `NanumBarunGothic, sans-serif` or `anything, sans-serif`
javascript:
var p = document.getElementsByTagName('p');
var len = p.length;
var i;
for (i = 0; i < len; i++) {
p[i].style.fontFamily='NanumBarunGothic';
}
@hiun
Copy link
Author

hiun commented Jun 18, 2014

Styling every p element with NanumBarunGothic, sans-serif or anything, sans-serif

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment