How do I apply the browser height to a CSS class?

Posted by ChrisBenyamin on Stack Overflow See other posts from Stack Overflow or by ChrisBenyamin
Published on 2010-05-17T22:04:06Z Indexed on 2010/05/17 22:10 UTC
Read the original article Hit count: 192

Filed under:
|
|

You can read your browser dimensions with jQuerys $document.height or with simple JS via height: window.innerHeight || document.body.clientHeight.

But how do I apply the value to a CSS class?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about css