I have a div, which, depending on the circumstances, may overflow. Is there any way that no matter how much data there is in a div, it will not have a scroll bar? I was hoping there would be a style that I could just add:
<div style="width:100; height:100; noscroll:true" >
Is there such a thing?
Yes, you can use overflow: hidden;, and it will never show the scroll bar. Please note that this may also disable scrolling (even with the mouse wheel) in some browsers.
overflow: hidden;
overflow-x: hidden; overflow-y: hidden; .
overflow-x: hidden;
overflow-y: hidden;
Source: https://habr.com/ru/post/1540736/More articles:Javascript document.referrer with full request - javascriptJavaScript query string - javascriptmongodump с набором реплик с ошибкой oplog throws: "Режим oplog поддерживается только на полных отвалах" - mongodbPython error Pymongo - pythonPython script gets stuck trying to continue process in lldb - pythonUsing Regex to Replace a String in Delphi - regexPostgres returns records in the wrong order - indexingElixir: how to make a structure enumerable - structIs it possible to configure Crashlytics on iOS without installing the application on each developer's workstation? - iosOsgi eclipse: how to export a package from a package of fragments and make them visible to an external package? - javaAll Articles