"Untitled"
Bootstrap 4.1.1 Snippet by Haandler

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div class="row"> <div class="col-lg-3"> <div class="colcategories">a</div> </div> <div class="col-lg-3"> <div class="colcategories">a</div> </div> <div class="col-lg-3"> <div class="colcategories">a</div> </div> <div class="col-lg-3"> <div class="colcategories">a</div> </div> </div> </div>
.colcategories {background: red; padding:;}
$(window).on('load resize', function () { var width = $('.colcategories').width(); $('.colcategories').css('height', width); }).resize();

Related: See More


Questions / Comments: