CSS Tutorial: white-space

The white-space property controls how text is handled on the element it is applied to. Let’s say you have HTML exactly like this:

You’ve styled the div to have a set width of 100px. At a reasonable font size, that’s too much text to fit in 100px. Without doing anything, the default white-space value […]

Continue reading