css scrollbar appears when overflow hidden code example
Example: hide the scrollbar in css if not overflow
.myClass {
/*auto will remove and add the scroll bar as needed*/
overflow: auto;
}
.myClass {
/*auto will remove and add the scroll bar as needed*/
overflow: auto;
}