Web design: css nowrap

Self-tutoring about web design: the tutor mentions the nowrap option for white-space.

What if you want a long string with no line breaks, for some reason? Well, it can be done, with nowrap:

Here is a sentence likely too long for the line, yet it doesn’t wrap; instead, it just continues past the margin, available for view there by scrolling:)

div{
white-space:nowrap;
overflow:scroll
}

Source:

css-tricks.com

Jack of Oracle Tutoring by Jack and Diane, Campbell River, BC.

Leave a Reply