-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Text indent wrong/unset after floating span #424
Comments
Hmm, changing to <p style="border:1px solid red; text-indent:-2em; padding-left:4em; ">
<span style="border: 1px solid blue; float:left; margin-left:-4em; text-indent:0;">1</span>
<span style="display:block;">Lorem ipsum... So it looks like something's being "shoved" in either case. |
If you want to see the float "anchor", the internal element that gets positionned in the paragraph (the float content itself is positionned relative to it), you can add in your HTML <head>
<style>floatBox { border: 1px solid green; }</style> So, the floatBox seems positionned where a float should be (at the padding edge), but then, it seems like it serves as a hard limit for the text left edge. Which, by principle, seems good as a way to avoid content overriding other content (which is a quite generic handling in crengine), as we're not dealing explicitely with empty floats and the fact text overriding some empty box would not be a problem). |
In the following example, the two "lorem" spans should both have a hanging indent:
E.g. Sigil:
However, only the second one is working in Koreader/Crengine:
Presumably something is "unsetting" the indent because of the float?
Here's the epub:
untitled.epub.zip
The text was updated successfully, but these errors were encountered: