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/

2
  • The elements in your fiddle don't have any style attributes, so it accurately returns the empty string for them. What did you expect? Commented Aug 6, 2017 at 14:08
  • 1
    This answer will be helpful. Commented Aug 6, 2017 at 14:10

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.