Return to Snippet

Revision: 2169
at January 8, 2007 08:02 by jonhenshaw


Updated Code
white-space:nowrap;

Revision: 2168
at January 8, 2007 08:02 by jonhenshaw


Initial Code
white-space: nowrap;

Initial URL

                                

Initial Description
This handy CSS attribute can be used to keep text from wrapping. It can also be used to keep other HTML elements from wrapping. Simply apply the white-space:nowrap attribute to any HTML element to force text and images to not return within a specified blog.

Something to note, IE6 can be buggy when this is used with an unordered list – but when isn't IE6 buggy?

Initial Title
CSS nowrap - Prevent Text From Wrapping in HTML

Initial Tags
text, layout

Initial Language
CSS