make text on one line css code example Example 1: css one line white-space: nowrap; Example 2: css text overflow overflow: scroll; white-space: nowrap;