Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop elements from wrapping when I zoom page?

I have been working on a website. The problem is when I change the resolution of the page with the browser(CTRL -/ + OR CTRL ZOOM), the last button overflows to downwards. I tried overflow:hidden but I couldn't solve it. And also I realized that in some computer, depending on the resolution the button overflow to downwards also even though I don't zoom it.

Without Zoom enter image descrifdf

With Zoom enter image description here

like image 738
SNaRe Avatar asked Dec 03 '25 19:12

SNaRe


1 Answers

Try adding white-space: nowrap; to the element that contains the menu items.

like image 90
David Thomas Avatar answered Dec 05 '25 10:12

David Thomas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!