I want to set the height of each of the div's under to equal that div's width.
<div class="container-fluid">
<div class="row box-row">
<div class="col-xs-6 col-md-4 box-container"></div>
<div class="col-xs-6 col-md-4 box-container"></div>
<div class="col-xs-12 col-md-4 box-container"></div>
<div class="col-xs-12 col-sm-6 col-md-4 box-container"></div>
</div>
</div>
I have tried with $('.box-container').css('height', $('.box-container').width());
, but that sets all the div's height to equal the first divs width.
Any suggestions?