CSS nowrap equivalent

CSS nowrap equivalent

A CSS syntax example that is equivalent to the nowrap HTML attribute.

The following code is useful when you don't want to allow the text to go head.
Instead of the nowrap attribute, it will not have compatibility problem with the W3C standards.

.nowrap {
	white-space: nowrap;
}


Regarding the html code, it is sufficient to ensure that each object you want to not go to head, use the nowrap class.

Example

<div class="nowrap">
 <p>this text is always on the same line,
regardless of the size of content</p>
</div>

Publication details

Category: CSS

Published by: loryzz on date: 06.03.2008 23:28:42

Last edit by: loryzz on date: 02.04.2008 16:54:26

Statistics

Details  This article has been viewed 24.958 times.

Send to

add to digg add to reddit add to furl add to facebook add to delicious add to google add to stumbleupon add to technorati add to ask add to live

Ratings

  • Currently 60; ?>/ TOTALSTARS
  • 1
  • 2
  • 3
  • 4
  • 5

Comments

Details 0 user comments, 0 still waiting.

Leave a comment

All comments must be approved by site administrator.
Please write comments on topic. Spam will be never approved.


Confirmation code

Please take a look to image and insert character into the form field.