show scroll only when overflow code example Example 1: scrollbar appear only when needed overflow: auto Example 2: show scroll only when overflow overflow: auto;