Float causes text to overflow page
Having trouble installing Oxygen PDF Chemistry? Got a bug to report? Post it all here.
-
- Posts: 4
- Joined: Tue Apr 08, 2025 7:32 pm
Float causes text to overflow page
I am using Oxygen 25.0 but I need to float some images in a pdf. I just installed a trial of Chemistry 27.1 to use the float feature (my understanding is that I needed at least Chemistry 26.1 to be able to use the float feature for a pdf). The float feature works brilliantly in the pdf but now the text rolls off the bottom of the page on every page where I have specified a float image. How do I get the page break to break at that normal margin at the bottom? Here is my css:
Thanks,
Leigh
Code: Select all
img[src *="images/case"] {
float: right;
display: block;
width: 200px;
padding: 0px 0px 15px 15px;
}
Leigh
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Float causes text to overflow page
Post by julien_lacour »
Hello Leigh,
If you remove this rule from the CSS does the overflow persist?
I did a small sample but cannot reproduce the issue:
Regards,
Julien
If you remove this rule from the CSS does the overflow persist?
I did a small sample but cannot reproduce the issue:
float.zip
Could you indicate if you are using XML, HTML, DITA or any other XML-type based document?Regards,
Julien
You do not have the required permissions to view the files attached to this post.
-
- Posts: 4
- Joined: Tue Apr 08, 2025 7:32 pm
Re: Float causes text to overflow page
Thanks Julien. We are using Dita. If I remove "float" from the css, the issue resolves. Please see the attached.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Float causes text to overflow page
Post by julien_lacour »
Hello,
I reproduced the issue and added it into our bug tracking system.
I will notify this thread when a fix will be available. Thank you for the files.
As a workaround you can place the text and the image side by side.
Regards,
Julien
I reproduced the issue and added it into our bug tracking system.
I will notify this thread when a fix will be available. Thank you for the files.
As a workaround you can place the text and the image side by side.
Regards,
Julien
-
- Posts: 4
- Joined: Tue Apr 08, 2025 7:32 pm
Re: Float causes text to overflow page
Thanks Julien. This solution works in a few cases but not when the image size varies or the length of the side by side paragraph varies. If the paragraph is shorter than the image, there is a gap. If the image is longer than the paragraph, there is a gap and if the image is wider, the image won't fit so it bumps down. Is there another way to wrap the text around the image even when the image and paragraph size vary? We have a number of these images so I am trying to come up with a solution that will work for all.
Thanks,
Leigh
Thanks,
Leigh
2025-04-16_9-35-00.png
You do not have the required permissions to view the files attached to this post.
-
- Posts: 665
- Joined: Wed Oct 16, 2019 3:47 pm
Re: Float causes text to overflow page
Post by julien_lacour »
Hello,
Using the side-by-side view, you can't correct the text longer/shorter than the image (except if you split the text/add the following text in the div container - so it has the same length as the image).
For wider images, you should be able to correct the display by setting max-width on the image so it can't overflow its inline-block.
Regards,
Julien
Using the side-by-side view, you can't correct the text longer/shorter than the image (except if you split the text/add the following text in the div container - so it has the same length as the image).
For wider images, you should be able to correct the display by setting max-width on the image so it can't overflow its inline-block.
Regards,
Julien
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service