force text one line css code example
Example 1: css make div one line
div {
width: 100px;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
Example 2: css make div one line
div {
border: 1px solid black;
width: 70px;
overflow: hidden;
white-space: nowrap;
}