CSS nowrap - Prevent Text From Wrapping in HTML


/ Published in: CSS
Save to your folder(s)

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?


Copy this code and paste it in your HTML
  1. white-space:nowrap;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.