0

Hello I write in es6 module to set in all elements (.product-category__item) the same height but I can't get any height :/

var measureElements = document.querySelectorAll('.product-category__item');
for(let item of measureElements) {
    console.log(item.style.height)  // return nothing
}

https://jsfiddle.net/uba46k0e/

JanuszFrontEnd'u
  • 451
  • 6
  • 14
  • The elements in your fiddle don't have any `style` attributes, so it accurately returns the empty string for them. What did you expect? – Bergi Aug 06 '17 at 14:08
  • 1
    This [answer](https://stackoverflow.com/questions/15615552/get-div-height-with-plain-javascript) will be helpful. – Dan Kreiger Aug 06 '17 at 14:10

0 Answers0