Skip to content

Instantly share code, notes, and snippets.

@agenciadroopi
Created October 22, 2013 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agenciadroopi/7099837 to your computer and use it in GitHub Desktop.
Save agenciadroopi/7099837 to your computer and use it in GitHub Desktop.
A Pen by Luiz Gabriel.
<div class="column">
texto, texto <br/>
texto, texto <br/>
texto, texto <br/>
texto, texto <br/>
texto, texto <br/>
</div>
<div class="column">
texto, texto <br/>
texto, texto <br/>
</div>
<div class="column">
texto, texto <br/>
texto, texto <br/>
texto, texto <br/>
</div>
function alturaIgual(group) {
maisAlto = 0;
group.each(function() {
pegaAltura = $(this).height();
if(pegaAltura > maisAlto) {
maisAlto = pegaAltura;
}
});
group.height(maisAlto);
}
$(document).ready(function() {
alturaIgual($(".column"));
});
.column {
border: 1px solid red;
width: 200px;
float:left;
padding:10px;
margin-right:10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment