Created
June 28, 2015 23:12
-
-
Save vlakoff/7632ee0bfcf17364349a to your computer and use it in GitHub Desktop.
Increase or decrease CSS values thanks to jQuery
This file contains hidden or 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
/* | |
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