We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

jonhenshaw on 01/08/07


Tagged

white space whitespace text layout nowrap wrapping


Versions (?)


Who likes this?

3 people have marked this snippet as a favorite

basicmagic
stoker
jonhenshaw


CSS nowrap - Prevent Text From Wrapping in HTML


Published in: CSS 


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?

  1. white-space:nowrap;

Report this snippet 

You need to login to post a comment.