In chrome, for example: Wrench>Options>Under The Hood>Change Font and Language>Serif Font>Change>Font Size=24+.

Obviously, I'd want to shrink the sheet size and make it so that code boxes that include embedded scrollbars wrap on fewer characters, right? So, can you please include code for one of these two actions things in your example?

Thank you. Comments are greatly appreciated.

2 answers

1
point
This was chosen as the best answer

You can use jQuery to get the fontSize of the targeted element and run code based on the size.

     if($('p').css('fontSize') > '20px'){

    console.log('greater than 20px')
    ...run your code up in here!
   :) 
};
Answered about 6 years ago by Jeffrey Nolte
  • Is this going to actually give the user's 'fontscale', as set by the browser, in the DOM? Not my e-mail address, jerks about 6 years ago
1
point

This is more a matter for designing without setting a fixed font size, using ems and proportional sizing for your elements.

Maybe you also need media queries.

http://blog.cloudfour.com/the-ems-have-it-proportional-media-queries-ftw/

Answered over 4 years ago by Tony Crockford