Skip to content

Instantly share code, notes, and snippets.

@vlakoff
Created June 28, 2015 23:12
Show Gist options
  • Save vlakoff/7632ee0bfcf17364349a to your computer and use it in GitHub Desktop.
Save vlakoff/7632ee0bfcf17364349a to your computer and use it in GitHub Desktop.
Increase or decrease CSS values thanks to jQuery
/*
cleaner than hard-coding the desired font size
refs: http://api.jquery.com/css/
some use case:
all these websites that use *huge* font sizes,
painful to read even on a 1920x1080 screen.
*/
$('.article-content').css('font-size', '-=2');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment