Created
February 4, 2016 20:07
-
-
Save ghostwriter/7a481dbfb1ef048f1109 to your computer and use it in GitHub Desktop.
Increase or decrease CSS values with jQuery
This file contains 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