How to get an element the same height as browser resolution?

karimsat

New Member
I am trying use jquery to set the height of an element to equal the users browser. Here is the code I got so far that's not working. Is it because I have a minimal height set in css? I really need that class to equal the users resolution.\[code\]<script type="text/javascript">jQuery(function() { jQuery(".bg").css("height", jQuery(window).css("height"));}</script>\[/code\]
 
Back
Top