My attempt to use the minHeight
property in one of my divs
is not successful, and I am unsure why...
<div id="countries">
<div class="fixed">
<div class="country" style="marging-left:0px;"></div>
<div class="country"></div>
<div class="country"></div>
<div class="country"></div>
<div class="country"></div>
<div class="country"></div>
</div>
</div>
<script type="text/javascript">
$("#countries").css("min-height", "100px");
$(".fixed").css("minHeight", "100px");
$(".country").css("height", $(window).height() * 0.4);
</script>
The countries' minHeight
property does not seem to be applying correctly, even though the .country
elements exceed the size of "#countries". I have also tried:
$("#countries").css("minHeight","100px");
$("#countries").attr("style","min-height:100px");
Unfortunately, these attempts did not yield the desired outcome.