Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $( document ).ready(function() {
- var theWidth = $( window ).width();
- var theSize = theWidth / 100;
- $( 'html' ).css( "fontSize", theSize + "px" );
- });
- $( window ).resize(function() {
- var theWidth = $( window ).width();
- var theSize = theWidth / 100;
- if (theSize >= 8 && theSize <= 14) {
- $( 'html' ).css( "fontSize", theSize + "px" );
- };
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement