2
I would like to have a code that goes through all the divs
with a certain class
and then see which was the biggest height
and to define their size all the same. There is a way to do this?
I know how to get the height
with: $(".img").height()
but he so only goes to get the first that appeared.
UPDATE
With the reply of @Artur the Templar, I could see the height
of each, but now I’m not able to apply the height
to all.
Here’s the code I made
var lista_imagens = $('.border_not');
lista_imagens.each(function (){
var last = "";
var height_img=$(this).height();
if(height_img > last){
last = height_img;
}
});
As far as I can see, it’s gonna bring
heigths
Are you sure right? What I’m working on, I have squares that carry an image and text but the text on some squares doesn’t fit in a single line and expand.– I_like_trains
No, where did you get this?
– Jéf Bueno
I’m sorry, I didn’t really read the answer but I didn’t get it right either
– I_like_trains