I've been attempting to stretch a div to the browser's height using CSS in jQuery, but it doesn't seem to be working. I can successfully apply 100% width to the div, but height is proving to be a challenge. Any ideas why this might be happening? Thank you for your help!
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function() {
$('.test').css({
"background-color": "yellow",
"width": "50%",
"height": "50%",
});
});
</script>
<div class="test" style="width: 15px; height: 60px; background-color: red"><div>