The scrollbar can be triggered with any property overflow, overflow-x, or overflow-y and each can be set to any of visible, hidden, scroll, auto, or inherit. You are currently looking at these two:
auto - This value will look at the width and height of the box. If they are defined, it won
scroll - This values forces a scrollbar, no matter what, even if the content does not exceed the boundary set. If the content doesn
If you always want the vertical scrollbar to appear:
You should use overflow-y: scroll. This forces a scrollbar to appear for the vertical axis whether or not it is needed. If you can
If you only want a scrollbar to appear if you can scroll the box:
Just use overflow: auto. Since your content by default just breaks to the next line when it cannot fit on the current line, a horizontal scrollbar won