The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › Query: JS style.height IF statement › Re: Query: JS style.height IF statement
That’s interesting. The CSS styling was written so that the
So, as you’ve suggested, I suspect that it was effectively adding a height to the “navBar” element that it didn’t already have, because it’s height was applied to the nav element.
Now my code is changing the “className” which is applied inline. So, the “className” is already there for it to check and then change appropriately.
Thank you for clarifying this.