I've a trouble with the style of nav
element in my web application.
As you're able to see, if to focus on element nav#menu.horizontal-menu
- I can see the actual width/height of that element in Chrome.
BUT! When I try to obtain that element in JavaScript by the id - menu
(as you can see the tag declaration of nav
tag in the bottom part of screen):
There is no both width or height values of it... I rather understand, that it may be because of:
`nav#menu.horizontal-menu` != `nav`
But, it's only my suggestion... I've tried then to use both functions:
- getElementsByClassName()
- querySelector()
But... also no success as you can see in screens, what's wrong and how to get so needed actual width and height options from element?
Thanks!