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
Incorrect vertical alignment of elements within line box #2937
Comments
This is an issue we're attempting to address with #2762. Rendering with that update is significantly improved, but there are still some alignment issues we need to address so it is not quite ready for production use. I'm hopeful to have that update ready for the next release. |
Also, while I appreciate you not wanting to duplicate your post it's better to post the full explanation here. I've updated your post. |
FYI with the current release you can work around the issue by moving your image block down using relative positioning. You'll also want to set z-indexing a bit differently to better accommodate how Dompdf renders elements.
|
I have an issue with Dompdf not positioning images correct.
The output in browser is ok, but the images are to close to the title in the PDF.
They should also render over the blue bar. I thought this should be possible with either a negative margin-top or a position absolute. But from what I read is that
position:absolute
inside aposition:relative
container is (still) not working.HTML and expected output:
PDF renders as follows:
PHP Code:
original: https://stackoverflow.com/q/72772559/264628
The text was updated successfully, but these errors were encountered: