css how to prevent horizontal scrolling code example
Example 1: css how to prevent horizontal scrolling
body {
overflow-x: hidden !important;
}
.container {
max-width: 100% !important;
overflow-x: hidden !important;
}
Example 2: css how to prevent horizontal scrolling
html, body {
max-width: 100%;
overflow-x: hidden;
}