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
Ratings
Leave a comment
All comments must be approved by site administrator.
Please write comments on topic. Spam will be never approved.
CSS: Linked articles
XHTML and CSS strike alternatives published by loryzz in CSS
Testo lampeggiante published by loryzz in CSS
Table style with css published by loryzz in CSS
Min-width property published by loryzz in CSS
Min-height property published by loryzz in CSS
























Ritorna all'inizio
Based total comments
0 %
Comments percentage
0 %