How To Remove Horizontal Scroll Bar Html Css Code Example


Example 1: css how to remove horizontal scrollbar


html, body {
max-width: 100%;
overflow-x: hidden;
}

Example 2: how to remove horizontal scrolling


/* this works for vertical scrolling also

this is useful for those who can't use overflow: hidden or any other solution
because the css on the website changes in someway */


::-webkit-scrollbar:horizontal {
display: none;
}

Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android How Can I Convert A String To A Editable