T
T
torrentino2021-07-09 23:59:37
JavaScript
torrentino, 2021-07-09 23:59:37

How to determine how many elements do not fit into the block?

fits - no submenu with yet
one does not fit - a submenu with one item
does not fit two - a submenu with two items

https://jsfiddle.net/2Lh30r9x/

60e8b7ff40847433219705.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
TheSnegok, 2021-07-10
@TheSnegok

You can look at the width of the screen and set, here is the link

K
kryamk, 2021-07-10
@kryamk

When loading the page, it seems to work, but on resize, even garbage turns out

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question