Quote:
Originally Posted by DrewBoyd
When I tried it on just a space between words, it looks the same way as the screen grab with a very large space and the code view looks like this:
He escaped<i> </i>from the jail cell and...
|
Hunh? That can't be right, or we could be on the track of the issue. Why do you have an italics coding surrounding an nbsp? Are you seeing these nbsp's in the other areas with the "gaps?"
(Methinks we're getting somewhere.)
Quote:
The screen grab above is from the BookView within Sigil (for PC) but it also looks the same in the Sigil preview and when imported into Calibre.
The display font was set to Times New Roman. I downloaded the Mac version and it's doing the same thing.
|
Have you opened this in anything like ADE, Readium, Nook (for PC/Mac, whatever)?
Quote:
I got the idea to try again with a <span> set-up and try setting the margins for the words like so:
span.italic {
margin-left: 0.35em;
margin-right: 0.35em;
font-style: italic;
}
This makes it display properly whether in left alignment or when justified. What I'm wondering is if there is any downside to doing it this way? I'm not opposed to this work-around if it won't cause any other troubles.
|
Uh...do you have that styling for i and b? Because if you do, that's why you are getting those gaps. Why do you have .35em surrounding the spans? That's not right at all. You should't have margins (or padding) around elements in a sentence. Either bold, italic, underscored, etc. That's what spaces are for.
Can you confirm that you're seeing the "nbsp" every place you're putting in the bold/italic? Are you adding that in Bookview, by the way?
Hitch