- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Abuse to a Moderator
Incorrect formatting if using white-space:now rap; attribute in css element at beginning of <p>
Status:
Under Review
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
- Mark as Read
- Mark Message as New
- Bookmark
- Highlight
- Email to a Friend
- Report Abuse to a Moderator
You must be a registered user to add a comment here. If you've already registered, please log in. If you haven't registered yet, please register and log in.
