Posted By

jonhenshaw on 01/08/07


Tagged

white space whitespace text layout nowrap wrapping


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

basicmagic
stoker
jonhenshaw
almazom
alexteg
pavlosvos


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.