Answers for "make div overflow scrollbar"

CSS
1

css show scrollbar if overflow

/*You can automatically show a scrollbar IF there is overflow with  this: */
body {
  overflow:auto;
}
/*If you want to always show a scrollbar, use this: */
body {
  overflow:scroll;
}
Posted by: Guest on April-18-2021
0

div overlfow scroll

.verticalScroll{
overflow-y: scroll;
max-height: 300px;
}

.horizontalScroll{
overflow-x: scroll;
max-width: 300px;
}
Posted by: Guest on October-05-2021

Browse Popular Code Answers by Language