I have a navbar containing a ul which contains 30 li elements (of varying size that I can't predict).
These 30 li elements normally fit nicely on the page when it's full size, but when it's shrunk past about 800px they start disappearing (because there's no room for them and I've deliberately set overflow:hidden on my ul so that they don't spill onto a new line).
The only thing I need to do now is to detect when an "overflow event" has happened so that I can append some text to the end of the navbar line saying something like "more", or "..." (i.e. just something to indicate there's missing li elements because the page is too small)
Perhaps I'm going about this the wrong way, but I simply want a mechanism for programatically determining whether the li elements in my ul have overflowed - possible?