Skip to content

Instantly share code, notes, and snippets.

@mavitm
Created May 27, 2016 21:58
Show Gist options
  • Save mavitm/2272c21b0ae31741ecf97779135d17a1 to your computer and use it in GitHub Desktop.
Save mavitm/2272c21b0ae31741ecf97779135d17a1 to your computer and use it in GitHub Desktop.
<div class="row boyutFitle" data-neleri=".textBoxMainInNewsText">
  
  <div class="col-sm-4">
      <div class="textBoxMain textBoxMainInNewsText">
        <p>Hebele hubele</p>
      </div>
  </div>
  
  <div class="col-sm-4">
      <div class="textBoxMain textBoxMainInNewsText">
        <p>Hebele hubele</p>
        <p>Hebele hubele</p>
      </div>
  </div>
  
  <div class="col-sm-4">
      <div class="textBoxMain textBoxMainInNewsText">
        <p>Hebele hubele</p>
        <p>Hebele hubele</p>
        <p>Hebele hubele</p>
      </div>
  </div>
    
</div>

<script type="text/javascript">
    $(".boyutFitle").each(function(){
        var neyi = $(this).data("neleri");
        var enBuyuk = 0;
        $(neyi).css({height:"auto"}).each(function(){
            var th = $(this).height();
            if(th > enBuyuk){
                enBuyuk = th;
            }
        }).height(enBuyuk);
    });
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment