New Message
0 Kudos

We have used the white-space:nowrap; attribute for a couple years in epub and mobi formats. Basically we are wrapping a single word that we don;'t want the reader to wrap becasue they break it incorrectly.

 

An example

 

 

html:
<p><span class="nowrap">This</span> is a stupid eaxample of why we would use the white-space:nowrap; attribute in the text within a paragraph tag. </p>
css:
span.nowrap {
white-space:nowrap; 
}

 

In all the epub readers but the Nook, and in the Nook prior to the latest software update in Oct/Nov time frame this displays fine.  Now in the current Nook the entire <p> acts like it has the nowrap attribute and most of the text falls of the right side. The <p> turns into a one line element!

 

The oddity is that this only happens if the tag with the nowrap attribute accurs first in the parent <p> or <div> 

 

this will not have the bug, notice the character 'T' before the <span> tag.

 

<p>T<span class="nowrap">his</span> is a stupid eaxample of why we would use the white-space:nowrap; attribute in the text within a paragraph tag. </p>

 

 

Scott

Categories: css, display incorrect, nowrap
Welcome to the NOOK Issue Reporting exchange. Post your issue and come back later to check its status, as well as commentary from myself and BN developers. - Alex
Message Statuses
Top Kudoed Authors
User Kudos Count
3