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