Trigger switch from main menu bar to offcanvas menu when main menu would break in two lines?

by Joe   Last Updated August 05, 2019 10:10 AM

I have a website in three languages, so the main menu doesn't take the same space for all the languages. Because of that, the main menu gets broken up into two lines when the words in the main menu are longer for some languages, which needs to be avoided. Any idea how I can code that the main menu bar switches to my offcanvas menu, as soon as it would break into two main menu lines, one above the other, maybe in CSS?

Related Questions

Updated September 06, 2016 08:06 AM

Updated January 08, 2017 08:04 AM

Updated April 06, 2017 20:10 PM

Updated April 11, 2016 08:04 AM

Updated July 19, 2016 08:04 AM